Sha256: 0d119bef40f7e659bd3de77aeb162f435ba37268db810fe17c8adda5cdd7551b

Contents?: true

Size: 350 Bytes

Versions: 26

Compression:

Stored size: 350 Bytes

Contents

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mongoid-0.7.0 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.10 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.9 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.8 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.7 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.6 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.5 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.4 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.3 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.2 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.1 lib/mongoid/extensions/object/parentization.rb
mongoid-0.6.0 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.11 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.10 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.9 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.8 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.7 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.6 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.5 lib/mongoid/extensions/object/parentization.rb
mongoid-0.5.4 lib/mongoid/extensions/object/parentization.rb