Class: Clearance::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/clearance/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

Returns the value of attribute cookie_expiration.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def cookie_expiration
  @cookie_expiration
end

#httponlyObject

Returns the value of attribute httponly.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def httponly
  @httponly
end

#mailer_senderObject

Returns the value of attribute mailer_sender.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def mailer_sender
  @mailer_sender
end

#password_strategyObject

Returns the value of attribute password_strategy.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def password_strategy
  @password_strategy
end

#redirect_urlObject

Returns the value of attribute redirect_url.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def redirect_url
  @redirect_url
end

Returns the value of attribute secure_cookie.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def secure_cookie
  @secure_cookie
end

#user_modelObject

Returns the value of attribute user_model.



3
4
5
# File 'lib/clearance/configuration.rb', line 3

def user_model
  @user_model
end