Module: Motr::Orm::Mongoid

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

Overview

:nodoc:

Instance Method Summary (collapse)

Instance Method Details

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



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

- (Object) motr_orm_type



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

def motr_orm_type; :mongoid; end