Sha256: af0f5b44147316c748ec5a08ef6f7947a5bf1f4a6f096ee4cddb2224927c9353
Contents?: true
Size: 386 Bytes
Versions: 5
Compression:
Stored size: 386 Bytes
Contents
module MongoMapper module RailsCompatibility def self.included(model) model.class_eval do alias_method :new_record?, :new? extend ClassMethods end class << model alias_method :has_many, :many end end module ClassMethods def column_names keys.keys end end def to_param id end end end
Version data entries
5 entries across 5 versions & 3 rubygems