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.



3
4
5
# File 'lib/api_guard/app_secret_key.rb', line 3

def initialize(application)
  @application = application
end

Instance Method Details

#detectObject



7
8
9
10
# File 'lib/api_guard/app_secret_key.rb', line 7

def detect
  secret_key_base(:credentials) || secret_key_base(:secrets) ||
    secret_key_base(:config) || secret_key_base
end