Sha256: cb5f93e0d18777c3de40c3e20f7632ef5b9cf0e8adf20ab717d719a929c4862c

Contents?: true

Size: 261 Bytes

Versions: 11

Compression:

Stored size: 261 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
mongo_mapper-unstable-2009.10.12 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.4.1 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.3.1 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.4 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.3 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-unstable-2009.10.11 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.2.1 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.2 lib/mongo_mapper/rails_compatibility/document.rb
djsun-mongo_mapper-0.5.0.1 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.1 lib/mongo_mapper/rails_compatibility/document.rb
mongo_mapper-0.5.0 lib/mongo_mapper/rails_compatibility/document.rb