Skip to content

Commit

Permalink
change initialize to create
Browse files Browse the repository at this point in the history
  • Loading branch information
CBElizabeth committed Apr 21, 2015
1 parent a9510df commit 2d52727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def new
end

def create
user = User.find_or_initialize_by(auth0_id: params["token"])
user = User.find_or_create_by(auth0_id: params["token"])
render json: user.to_json
end

Expand Down

0 comments on commit 2d52727

Please sign in to comment.