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.
-
#mailer_sender ⇒ Object
Returns the value of attribute mailer_sender.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/clearance/configuration.rb', line 5 def initialize @mailer_sender = '[email protected]' @cookie_expiration = lambda { 1.year.from_now.utc } 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 |
#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 |