Module: Obscured::Doorman::Base::Helpers
- Defined in:
- lib/obscured-doorman/base.rb
Instance Method Summary collapse
-
#notify(type, message) ⇒ Object
Generates a flash message by trying to fetch a default message, if that fails just pass the message.
-
#token_link(action, token) ⇒ Object
Generates a url for confirm account or reset password.
Instance Method Details
#notify(type, message) ⇒ Object
Generates a flash message by trying to fetch a default message, if that fails just pass the message
19 20 21 22 |
# File 'lib/obscured-doorman/base.rb', line 19 def notify(type, ) = Doorman::MESSAGES[] if .is_a?(Symbol) flash[type] = end |
#token_link(action, token) ⇒ Object
Generates a url for confirm account or reset password
25 26 27 |
# File 'lib/obscured-doorman/base.rb', line 25 def token_link(action, token) "http://#{env['HTTP_HOST']}/doorman/#{action}/#{token}" end |