Class: ApiGuard::AppSecretKey

Inherits:
Object
  • Object
show all
Defined in:
lib/api_guard/app_secret_key.rb

Instance Method Summary collapse

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

#detectObject



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