method

define_readers

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: Association
define_readers() 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/association.rb, line 37
      def define_readers
        name = self.name

        model.redefine_method(name) do |*params|
          association(name).reader(*params)
        end
      end
Register or log in to add new notes.