Corrected with rubocop cop 'Style/SpaceAroundBlockParameters'.
This commit is contained in:
parent
62b23c963e
commit
34fdfc7072
4 changed files with 4 additions and 4 deletions
|
@ -187,7 +187,7 @@ returns:
|
||||||
}
|
}
|
||||||
if item.screens
|
if item.screens
|
||||||
data[:screen] = {}
|
data[:screen] = {}
|
||||||
item.screens.each {|screen, roles_options |
|
item.screens.each {|screen, roles_options|
|
||||||
data[:screen][screen] = {}
|
data[:screen][screen] = {}
|
||||||
roles_options.each {|role, options|
|
roles_options.each {|role, options|
|
||||||
if role == '-all-'
|
if role == '-all-'
|
||||||
|
|
|
@ -72,7 +72,7 @@ returns
|
||||||
end
|
end
|
||||||
|
|
||||||
# replace e.g. 'current_user.id' with current_user.id
|
# replace e.g. 'current_user.id' with current_user.id
|
||||||
overview.condition.each { |item, value |
|
overview.condition.each { |item, value|
|
||||||
if value && value.class.to_s == 'String'
|
if value && value.class.to_s == 'String'
|
||||||
parts = value.split( '.', 2 )
|
parts = value.split( '.', 2 )
|
||||||
if parts[0] && parts[1] && parts[0] == 'current_user'
|
if parts[0] && parts[1] && parts[0] == 'current_user'
|
||||||
|
|
|
@ -35,7 +35,7 @@ returns
|
||||||
# get linked accounts
|
# get linked accounts
|
||||||
attributes['accounts'] = {}
|
attributes['accounts'] = {}
|
||||||
authorizations = self.authorizations()
|
authorizations = self.authorizations()
|
||||||
authorizations.each do | authorization |
|
authorizations.each do |authorization|
|
||||||
attributes['accounts'][authorization.provider] = {
|
attributes['accounts'][authorization.provider] = {
|
||||||
uid: authorization[:uid],
|
uid: authorization[:uid],
|
||||||
username: authorization[:username]
|
username: authorization[:username]
|
||||||
|
|
|
@ -64,7 +64,7 @@ module Auth::Ldap
|
||||||
source: 'ldap',
|
source: 'ldap',
|
||||||
updated_by_id: 1,
|
updated_by_id: 1,
|
||||||
}
|
}
|
||||||
config[:sync_params].each {| local_data, ldap_data |
|
config[:sync_params].each {|local_data, ldap_data|
|
||||||
if user_data[ ldap_data.downcase.to_sym ]
|
if user_data[ ldap_data.downcase.to_sym ]
|
||||||
user_attributes[ local_data.downcase.to_sym] = user_data[ ldap_data.downcase.to_sym ]
|
user_attributes[ local_data.downcase.to_sym] = user_data[ ldap_data.downcase.to_sym ]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue