Module: Devise::Orm::MongoMapper::Schema

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

Instance Method Summary collapse

Instance Method Details

#apply_devise_schema(name, type, options = {}) ⇒ Object

Tell how to apply schema methods



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

def apply_devise_schema(name, type, options={})
  type = Time if type == DateTime
  key name, type, options
end