Module: Motr::Orm::Mongoid

Defined in:
lib/motr/orm/mongoid.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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



7
8
9
10
# File 'lib/motr/orm/mongoid.rb', line 7

def create_mod_attribute!(name, type, options = {})
  type = Time if type == DateTime
  field name, { :type => type }.merge!(options)
end

#motr_orm_typeObject



5
# File 'lib/motr/orm/mongoid.rb', line 5

def motr_orm_type; :mongoid; end