mongoid/mongoid

View on GitHub
lib/mongoid/railties/document.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Mongoid
  module Document
    # Used in conjunction with fields_for to build a form element for the
    # destruction of this association. Always returns false because Mongoid
    # only supports immediate deletion of associations.
    #
    # See ActionView::Helpers::FormHelper::fields_for for more info.
    def _destroy
      false
    end
  end
end