Sha256: e6c8f44791fa5e01f3f521c900fa4a392c8eeb074854a234ee428328e466f5c8
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 Bytes
Contents
module Motr module Orm module Mongoid #:nodoc: def motr_orm_type; :mongoid; end def create_mod_attribute!(name, type, options = {}) type = Time if type == DateTime field name, { :type => type }.merge!(options) end end end end Mongoid::Document::ClassMethods.class_eval do include Motr::Mods include Motr::Orm::Mongoid end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
motr-0.1.1 | lib/motr/orm/mongoid.rb |
motr-0.1.0 | lib/motr/orm/mongoid.rb |
motr-0.0.9 | lib/motr/orm/mongoid.rb |
motr-0.0.8 | lib/motr/orm/mongoid.rb |