method
table_alias_for
v5.2.3 -
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 172
def table_alias_for(reflection, parent, join)
name = "#{reflection.plural_name}_#{parent.table_name}"
join ? "#{name}_join" : name
end