Sha256: 6b0c2671be5a63448c6c3353caed53ba16d4c3cddeed68431934441b75487b88

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Object #:nodoc:
      module Parentization #:nodoc:
        # Sets the parent object
        def parentize(object)
          self.parent = object
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-0.4.5 lib/mongoid/extensions/object/parentization.rb
mongoid-0.4.4 lib/mongoid/extensions/object/parentization.rb