Fix Rubocop warnings

This commit is contained in:
Artur Beljajev 2018-07-15 19:26:43 +03:00
parent 02aad0d781
commit a651ac8cab
13 changed files with 26 additions and 20 deletions

View file

@ -32,7 +32,10 @@ module Admin
end
def update
params[:api_user].delete(:plain_text_password) if params[:api_user][:plain_text_password].blank?
if params[:api_user][:plain_text_password].blank?
params[:api_user].delete(:plain_text_password)
end
if @api_user.update(api_user_params)
flash[:notice] = I18n.t('record_updated')
redirect_to [:admin, @api_user]

View file

@ -2,7 +2,6 @@ module Admin
class DashboardController < BaseController
authorize_resource class: false
def show
end
def show; end
end
end

View file

@ -24,11 +24,11 @@ module Admin
private
def after_sign_in_path_for(resource_or_scope)
def after_sign_in_path_for(_resource_or_scope)
admin_root_path
end
def after_sign_out_path_for(resource_or_scope)
def after_sign_out_path_for(_resource_or_scope)
new_admin_user_session_path
end