Module: LolAuth
- Defined in:
- lib/lol_auth.rb,
lib/lol_auth/engine.rb,
lib/lol_auth/version.rb,
app/helpers/lol_auth/users_helper.rb,
app/jobs/lol_auth/application_job.rb,
app/models/lol_auth/application_record.rb,
app/helpers/lol_auth/application_helper.rb,
app/mailers/lol_auth/application_mailer.rb,
app/controllers/lol_auth/users_controller.rb,
app/controllers/lol_auth/passwords_controller.rb,
app/controllers/lol_auth/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, UsersHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, InstallGenerator, PasswordsController, UsersController
Constant Summary collapse
- VERSION =
'0.1.15'
Instance Method Summary collapse
Instance Method Details
#update_avatar ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'app/controllers/lol_auth/users_controller.rb', line 56 def update_avatar @user = current_user @user.avatar = avatar_params[:avatar] if @user.save UserStateManager.new(user: @user).process render :success, status: 201 else render :fail, status: 422 end end |