Biserov/seventeen — comment on commit c186a60920299705575161bc3f7d10b6c7e3772d
File: app/controllers/users_controller.rb line 25
By evgeniypetrov:

did you mean this?
if @user.save!
@current_user = @user
session[:token] = @current_user.remember_token
@response[:content][:token] = @current_user.remember_token
else
@response[:error] << {:message => 'user was not created', :code => 0}
end

respond_to do |format|
format.json { render :json => @response }
end