Class: Clearance::Configuration
- Inherits:
-
Object
- Object
- Clearance::Configuration
- Defined in:
- lib/clearance/configuration.rb
Instance Attribute Summary collapse
-
#cookie_expiration ⇒ Object
Returns the value of attribute cookie_expiration.
-
#httponly ⇒ Object
Returns the value of attribute httponly.
-
#mailer_sender ⇒ Object
Returns the value of attribute mailer_sender.
-
#password_strategy ⇒ Object
Returns the value of attribute password_strategy.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#secure_cookie ⇒ Object
Returns the value of attribute secure_cookie.
-
#user_model ⇒ Object
Returns the value of attribute user_model.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 |
# File 'lib/clearance/configuration.rb', line 12 def initialize @cookie_expiration = lambda { 1.year.from_now.utc } @httponly = false @mailer_sender = '[email protected]' @secure_cookie = false @redirect_url = '/' end |
Instance Attribute Details
#cookie_expiration ⇒ Object
Returns the value of attribute cookie_expiration.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def @cookie_expiration end |
#httponly ⇒ Object
Returns the value of attribute httponly.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def httponly @httponly end |
#mailer_sender ⇒ Object
Returns the value of attribute mailer_sender.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def mailer_sender @mailer_sender end |
#password_strategy ⇒ Object
Returns the value of attribute password_strategy.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def password_strategy @password_strategy end |
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def redirect_url @redirect_url end |
#secure_cookie ⇒ Object
Returns the value of attribute secure_cookie.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def @secure_cookie end |
#user_model ⇒ Object
Returns the value of attribute user_model.
3 4 5 |
# File 'lib/clearance/configuration.rb', line 3 def user_model @user_model end |