mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
rubocop: syntax update
This commit is contained in:
parent
4779b9fba1
commit
1654f87e04
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue