-
Notifications
You must be signed in to change notification settings - Fork 0
Remove unused NonprofitsController#create
#1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused NonprofitsController#create
#1234
Conversation
| # Register (create) a nonprofit with an initial admin | ||
| def self.register(user, params) | ||
| np = create ConstructNonprofit.construct(user, params) | ||
| Role.create(user: user, name: "nonprofit_admin", host: np) if np.valid? | ||
| np | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only used by NonprofitsController#create
| @@ -1,12 +0,0 @@ | |||
| # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only used by Nonprofit.register
| require "get_data" | ||
| require "stripe" | ||
|
|
||
| module CreateStripeAccount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only used by ConstructNonprofit.construct
djohnston32
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM
NOTE: DO NOT discuss internal CommitChange information in your PR; this PR will be public.
Link back to the issue in the Tix repo when you need to do that.
When working on #1188, I realized we don't use
NonprofitsController#create. At all. Instead we create Nonprofits through theApi::NonprofitsController#createmethod. There's no reason to keep this other method around. In fact, we shouldn't.I also realized there are some other methods that were only used by that method so I deleted those too.