method
table_alias_for
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::Associations::JoinDependency
table_alias_for(reflection, parent, join)private
No documentation available.
# File activerecord/lib/active_record/associations/join_dependency.rb, line 202
def table_alias_for(reflection, parent, join)
name = "#{reflection.plural_name}_#{parent.table_name}"
name << "_join" if join
name
end