Sha256: 6303f496f0f66b3c79b932e7d95e1b62b8b8c62c81a2186268ade049c6d1a82f

Contents?: true

Size: 249 Bytes

Versions: 30

Compression:

Stored size: 249 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

30 entries across 30 versions & 6 rubygems

Version Path
crnixon-mongomapper-0.3.4 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.1.1 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.1 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.3 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.5.1 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.5.2 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.5.4 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.5.5 lib/mongomapper/rails_compatibility/document.rb
djsun-mongomapper-0.3.5 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.10 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.11 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.12 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.13 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.14 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.15 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.3 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.4.1 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.4 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.5 lib/mongomapper/rails_compatibility/document.rb
hashrocket-mongomapper-0.3.6 lib/mongomapper/rails_compatibility/document.rb