Module: Devise::Orm::MongoMapper

Includes:
Base
Defined in:
lib/devise/orm/mongo_mapper.rb

Instance Method Summary collapse

Instance Method Details

#add_fields(modules) ⇒ Object

Add all keys



30
31
32
33
34
# File 'lib/devise/orm/mongo_mapper.rb', line 30

def add_fields(modules)
  modules.each do |mod|
    send(mod)
  end
end

#authenticatableObject



7
8
9
10
11
# File 'lib/devise/orm/mongo_mapper.rb', line 7

def authenticatable
  key :email, String
  key :encrypted_password, String
  key :password_salt, String
end

#confirmableObject



13
14
15
16
17
# File 'lib/devise/orm/mongo_mapper.rb', line 13

def confirmable
  key :confirmation_token, String
  key :confirmed_at, DateTime
  key :confirmation_sent_at, DateTime
end

#recoverableObject



19
20
21
# File 'lib/devise/orm/mongo_mapper.rb', line 19

def recoverable
  key :reset_password_token, String
end

#rememberableObject



23
24
25
26
# File 'lib/devise/orm/mongo_mapper.rb', line 23

def rememberable
  key :remember_token, String
  key :remember_created_at, DateTime
end