Skip to content

Conversation

codebender
Copy link
Contributor

😸

@@ -151,7 +151,7 @@ def upgrade
upgrade_params = params.permit(:discount)

current_user.seen(:product_description) if signed_in?
@team = (current_user && current_user.team) || Team.new
@team = (current_user && current_user.membership.team) || Team.new
Copy link
Contributor

Choose a reason for hiding this comment

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

that will 500, membership is nil.

- also force the user to be logged in to create a new team
seuros added a commit that referenced this pull request Jan 17, 2015
replace deprecated user.team -> user.membership.team
@seuros seuros merged commit 8f310c2 into coderwall:master Jan 17, 2015
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