app/controllers/cadenero/v1/account/users_controller.rb in cadenero-0.0.2.a2 vs app/controllers/cadenero/v1/account/users_controller.rb in cadenero-0.0.2.a3
- old
+ new
@@ -18,10 +18,10 @@
# fulfilled and resulted in a new resource being created..
def create
account = Cadenero::V1::Account.where(subdomain: request.subdomain).first
@user = account.users.create(params[:user])
force_authentication!(@user)
- render json: @user, status: 201
+ render json: @user, status: :created
end
end
end
end