Class: LetMeIn::Config

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

Overview

Configuration class with some defaults. Can be changed like this:

LetMeIn.configure do |conf|
  conf.model      = 'Account'
  conf.identifier = 'username'
end

Constant Summary collapse

ACCESSORS =
%w(models attributes passwords salts)

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



22
23
24
25
26
27
# File 'lib/letmein.rb', line 22

def initialize
  @models       = ['User']
  @attributes   = ['email']
  @passwords    = ['password_hash']
  @salts        = ['password_salt']
end