Method: Netfira::WebConnect::Model::Relation.table_name

Defined in:
lib/netfira/web_connect/model/relation.rb

.table_nameObject



115
116
117
118
119
120
121
# File 'lib/netfira/web_connect/model/relation.rb', line 115

def table_name
  @table_name ||= if self == Model::Relation
    Models::Table.table_name
  else
    Netfira::WebConnect.db_table_prefix(related_classes.map(&:plural_name).join '_to_').to_s
  end
end