method

new

new(klass, macro, association_name, options, possible_sources)
public

No documentation available.

# File activerecord/lib/active_record/associations.rb, line 204
    def initialize(klass, macro, association_name, options, possible_sources)
      example_options = options.dup
      example_options[:source] = possible_sources.first

      super("Ambiguous source reflection for through association. Please "              "specify a :source directive on your declaration like:\n"              "\n"              "  class #{klass} < ActiveRecord::Base\n"              "    #{macro} :#{association_name}, #{example_options}\n"              "  end"
           )
    end