Flowdock
method

association_for_table

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
association_for_table(table_name) 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/relation/query_methods.rb, line 999
    def association_for_table(table_name)
      table_name = table_name.to_s
      @klass._reflect_on_association(table_name) ||
        @klass._reflect_on_association(table_name.singularize)
    end
Register or log in to add new notes.