Sha256: fefd4a39db4cbc6ca0dcb5ece20ef58ad1ac428ed2237ec4dbb6235d87587380

Contents?: true

Size: 208 Bytes

Versions: 19

Compression:

Stored size: 208 Bytes

Contents

module MongoMapper
  module RailsCompatibility
    module Document
      def self.included(model)
        model.class_eval do
          alias_method :new_record?, :new?
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
mongo_mapper-unstable-2009.11.8 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-unstable-2009.11.6 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.8.2 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.8.1 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.6.6 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.6.5 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-unstable-2009.11.2 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-unstable-2009.10.31 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.8 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.7 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.6.4 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.6.3 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.6.2 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.6.1 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.6 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.5.3 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-unstable-2009.10.16 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.5.2 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.5 lib/mongo_mapper/rails_compatibility/document.rb