Module: MultiTenant::TableNode
- Defined in:
- lib/activerecord-multi-tenant/table_node.rb
Class Method Summary collapse
-
.table_name(node) ⇒ Object
Return table name.
Class Method Details
.table_name(node) ⇒ Object
Return table name
4 5 6 7 8 9 10 11 |
# File 'lib/activerecord-multi-tenant/table_node.rb', line 4 def self.table_name(node) # NOTE: Arel::Nodes::Table#table_name is removed in Rails 7.1 if node.is_a?(Arel::Nodes::TableAlias) node.table_name else node.name end end |