rubocop: syntax update

This commit is contained in:
Priit Tark 2015-06-09 16:24:43 +03:00
parent 4779b9fba1
commit 1654f87e04
2 changed files with 3 additions and 2 deletions

View file

@ -57,6 +57,7 @@ class Admin::AdminUsersController < AdminController
end
def admin_user_params
params.require(:admin_user).permit(:username, :password, :password_confirmation, :identity_code, :email, :country_code, { roles: [] })
params.require(:admin_user).permit(:username,
:password, :password_confirmation, :identity_code, :email, :country_code, { roles: [] })
end
end

View file

@ -4,7 +4,7 @@ module I18n
class << self
alias_method :original_localize, :localize
def localize object, options = {}
def localize(object, options = {})
object.present? ? original_localize(object, options) : ''
end
end