Module: Lockup
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/lockup.rb,
lib/lockup/engine.rb,
lib/lockup/version.rb,
app/helpers/lockup/lockup_helper.rb,
app/helpers/lockup/application_helper.rb,
app/controllers/lockup/lockup_controller.rb,
app/controllers/lockup/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, LockupHelper Classes: ApplicationController, Engine, LockupController
Constant Summary collapse
- VERSION =
"1.7.1"
Class Method Summary collapse
Class Method Details
.from_config(setting, secrets_or_credentials = :credentials) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/lockup.rb', line 16 def self.from_config(setting, secrets_or_credentials = :credentials) return unless Rails.application.respond_to?(secrets_or_credentials) store = Rails.application.public_send(secrets_or_credentials) store.lockup.respond_to?(:fetch) && store.lockup.fetch(setting, store.public_send("lockup_#{setting}")) || store.public_send("lockup_#{setting}") || store.public_send(setting) end |