mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
code cleanup: rubocop: fix Rails/Presence in config/initializers/30-redmine.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18521 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fe6b965fd5
commit
e7ba3cf008
@ -959,7 +959,6 @@ Rails/Presence:
|
||||
- 'app/controllers/activities_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/models/repository.rb'
|
||||
- 'config/initializers/30-redmine.rb'
|
||||
- 'lib/redmine/codeset_util.rb'
|
||||
- 'lib/redmine/i18n.rb'
|
||||
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||
|
||||
@ -14,9 +14,7 @@ end
|
||||
|
||||
if Object.const_defined?(:OpenIdAuthentication)
|
||||
openid_authentication_store = Redmine::Configuration['openid_authentication_store']
|
||||
OpenIdAuthentication.store =
|
||||
openid_authentication_store.present? ?
|
||||
openid_authentication_store : :memory
|
||||
OpenIdAuthentication.store = openid_authentication_store.presence || :memory
|
||||
end
|
||||
|
||||
Redmine::Plugin.load
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user