method

table_name_for

table_name_for(reflection)
private

No documentation available.

# File activerecord/lib/active_record/associations/association_scope.rb, line 106
      def table_name_for(reflection)
        if reflection == self.reflection
          # If this is a polymorphic belongs_to, we want to get the klass from the
          # association because it depends on the polymorphic_type attribute of
          # the owner
          klass.table_name
        else
          reflection.table_name
        end
      end