Sha256: a01b475b784325543bd3fb46a88e7b73b941383bee3a6059a084cbeb4866a58e
Contents?: true
Size: 501 Bytes
Versions: 20
Compression:
Stored size: 501 Bytes
Contents
module MongoMapper module RailsCompatibility module EmbeddedDocument def self.included(model) model.class_eval do extend ClassMethods alias_method :new_record?, :new? end class << model alias has_many many end end module ClassMethods def column_names keys.keys end def human_name self.name.demodulize.titleize end end end end end
Version data entries
20 entries across 20 versions & 5 rubygems