Method: AnyQuery::Adapters::Sql#join_relation_name

Defined in:
lib/any_query/adapters/sql.rb

#join_relation_name(join) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



91
92
93
94
95
96
97
# File 'lib/any_query/adapters/sql.rb', line 91

def join_relation_name(join)
  if join[:as] == :list
    join[:model].table_name.pluralize.to_sym
  else
    join[:model].table_name.singularize.to_sym
  end
end