app/admin/users.rb
Showing 1 of 1 total issue
Method update
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def update(options={}, &block) user_params = params[:user] resource.role = user_params.delete(:role) user_params.delete(:password) if user_params[:password].blank? user_params.delete(:password_confirmation) if user_params[:password_confirmation].blank?
- Read upRead up