class Callforth::Setup
Public Class Methods
clear()
click to toggle source
# File lib/callforth/setup.rb, line 12 def clear clear_secret_key end
for(application)
click to toggle source
# File lib/callforth/setup.rb, line 6 def for(application) callforth_config = application.config.callforth setup_secret_key(callforth_config) end
Private Class Methods
clear_secret_key()
click to toggle source
# File lib/callforth/setup.rb, line 22 def clear_secret_key Callforth.secret_key = nil end
setup_secret_key(config)
click to toggle source
# File lib/callforth/setup.rb, line 18 def setup_secret_key(config) Callforth.secret_key = config.secret_key.respond_to?(:call) ? config.secret_key.call : config.secret_key end