source_reflection() public

Gets the source of the through reflection. It checks both a singularized and pluralized form for :belongs_to or :has_many.

  class Post < ActiveRecord::Base
    has_many :taggings
    has_many :tags, :through => :taggings
  end
Show source
Register or log in to add new notes.