Sha256: 0489283b6879a4141fef0034ba466d011d5be07e7e4093edcbdab7bf5ebf2834

Contents?: true

Size: 333 Bytes

Versions: 51

Compression:

Stored size: 333 Bytes

Contents

module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Array #:nodoc:
      module Parentization #:nodoc:
        # Adds the parent document to each element in the array.
        def parentize(parent, association_name)
          each { |obj| obj.parentize(parent, association_name) }
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
mongoid-0.9.4 lib/mongoid/extensions/array/parentization.rb
mongoid-0.9.3 lib/mongoid/extensions/array/parentization.rb
mongoid-0.9.2 lib/mongoid/extensions/array/parentization.rb
mongoid-0.9.1 lib/mongoid/extensions/array/parentization.rb
mongoid-0.9.0 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.10 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.9 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.8 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.7 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.6 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.5 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.4 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.3 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.2 lib/mongoid/extensions/array/parentization.rb
mongoid-0.8.1 lib/mongoid/extensions/array/parentization.rb
mongoid-0.7.10 lib/mongoid/extensions/array/parentization.rb
mongoid-0.7.9 lib/mongoid/extensions/array/parentization.rb
mongoid-0.7.8 lib/mongoid/extensions/array/parentization.rb
mongoid-0.7.7 lib/mongoid/extensions/array/parentization.rb
mongoid-0.7.6 lib/mongoid/extensions/array/parentization.rb