Flowdock
method

define_destroy_dependency_method

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: HasOne
define_destroy_dependency_method() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/builder/has_one.rb, line 46
      def define_destroy_dependency_method
        model.send(:class_eval,           def #{dependency_method_name}            association(#{name.to_sym.inspect}).delete          end, __FILE__, __LINE__ + 1)
      end
Register or log in to add new notes.