Skip to content

Fix new subscriptions #291

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

Merged
merged 2 commits into from
Jan 11, 2015
Merged

Fix new subscriptions #291

merged 2 commits into from
Jan 11, 2015

Conversation

rohitpaulk
Copy link
Contributor

Bounty#500

I've made the commits small and verbose for reviewing purposes. I'll squash and reword them once this is reviewed.

@rohitpaulk rohitpaulk changed the title Fix teams Fix new subscription Jan 10, 2015
@rohitpaulk rohitpaulk changed the title Fix new subscription Fix new subscriptions Jan 10, 2015
validates_presence_of :stripe_card_token
validates_presence_of :stripe_customer_token
validates :team_id, presence: true, uniqueness: true
validate :admin_id, :payer_is_team_admin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove that.

@rohitpaulk rohitpaulk force-pushed the fix-teams branch 2 times, most recently from 9e70757 to 63e48b4 Compare January 10, 2015 16:53
@seuros
Copy link
Contributor

seuros commented Jan 11, 2015

@rohitpaulk could you squash your commits by context ?

Reorganize Plan model, Remove duplicated uniqueness validations, Fix seeds.rb

Regression from coderwall#279, Remove payer_is_team_admin
Strong Parameters for account params

Fix if condition in save_with_payment

When save_with_payment is called, stripe_customer_token might not be available, so we should check for just stripe_card_token.
@rohitpaulk
Copy link
Contributor Author

Done.

seuros added a commit that referenced this pull request Jan 11, 2015
@seuros seuros merged commit 3d2d1cd into coderwall:master Jan 11, 2015
@rohitpaulk rohitpaulk deleted the fix-teams branch January 11, 2015 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants