Flowdock
method

define_accessors

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: SingularAssociation
define_accessors(model, reflection) public

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/singular_association.rb, line 11
    def self.define_accessors(model, reflection)
      super
      mixin = model.generated_association_methods
      name = reflection.name

      define_constructors(mixin, name) if reflection.constructable?

      mixin.class_eval         def reload_#{name}          association(:#{name}).force_reload_reader        end, __FILE__, __LINE__ + 1
    end
Register or log in to add new notes.