Class: ApiGuard::AppSecretKey
- Inherits:
-
Object
- Object
- ApiGuard::AppSecretKey
- Defined in:
- lib/api_guard/app_secret_key.rb
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize(application) ⇒ AppSecretKey
constructor
A new instance of AppSecretKey.
Constructor Details
#initialize(application) ⇒ AppSecretKey
Returns a new instance of AppSecretKey.
5 6 7 |
# File 'lib/api_guard/app_secret_key.rb', line 5 def initialize(application) @application = application end |
Instance Method Details
#detect ⇒ Object
9 10 11 12 |
# File 'lib/api_guard/app_secret_key.rb', line 9 def detect secret_key_base(:credentials) || secret_key_base(:secrets) || secret_key_base(:config) || secret_key_base end |