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