method

source_reflection

source_reflection()
public

Gets the source of the through reflection. It checks both a singularized and pluralized form for :belongs_to or :has_many. (The :tags association on Tagging below.)

  class Post < ActiveRecord::Base
    has_many :taggings
    has_many :tags, :through => :taggings
  end