Sha256: 3f766957ad2bba94ee3cb9933c1d8af7d69db5066ddd1557a8fab6f186d066a7

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

# encoding: utf-8
module Mongoid # :nodoc:
  module Relations #:nodoc:
    module Cascading #:nodoc:
      class Nullify < Strategy

        # This cascade does not delete the referenced relations, but instead
        # sets the foreign key values to nil.
        #
        # @example Nullify the reference.
        #   strategy.cascade
        def cascade
          relation.nullify
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/relations/cascading/nullify.rb
mongoid-2.0.0.rc.6 lib/mongoid/relations/cascading/nullify.rb
mongoid-2.0.0.rc.5 lib/mongoid/relations/cascading/nullify.rb
mongoid-2.0.0.rc.4 lib/mongoid/relations/cascading/nullify.rb
mongoid-2.0.0.rc.3 lib/mongoid/relations/cascading/nullify.rb
mongoid-2.0.0.rc.2 lib/mongoid/relations/cascading/nullify.rb
mongoid-2.0.0.rc.1 lib/mongoid/relations/cascading/nullify.rb