Updated

app/controllers/admin / profile_controller.rb

A
20 lines of codes
3 methods
3.5 complexity/method
8 churn
10.57 complexity
0 duplications
class Admin::ProfileController < Admin::AdminController
  1. Admin::ProfileController has no descriptive comment
skip_before_filter :check_for_password_change def edit end def update if current_user.update_with_password(admin_user_params) redirect_to admin_root_url, notice: :password_updated else render :edit end end def admin_user_params params.require(:admin_user).permit( :current_password, :password, :password_confirmation ) end end