Skip to content

Commit 883f597

Browse files
committed
replace deprecated user.team -> user.membership.team
1 parent 5f78d31 commit 883f597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/teams_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def upgrade
151151
upgrade_params = params.permit(:discount)
152152

153153
current_user.seen(:product_description) if signed_in?
154-
@team = (current_user && current_user.team) || Team.new
154+
@team = (current_user && current_user.membership.team) || Team.new
155155
store_location! unless signed_in?
156156

157157
if upgrade_params[:discount] == ENV['DISCOUNT_TOKEN']

0 commit comments

Comments
 (0)