Class: ActiveWarehouse::Bridge
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActiveWarehouse::Bridge
- Defined in:
- lib/active_warehouse/bridge.rb
Overview
Implements a bridge table.
Direct Known Subclasses
Class Method Summary collapse
-
.table_name ⇒ Object
Get the table name.
Class Method Details
.table_name ⇒ Object
Get the table name. By default the table name will be the name of the bridge in singular form.
Example: DepartmentHierarchyBridge will have a table called department_hierarchy_bridge
10 11 12 13 14 |
# File 'lib/active_warehouse/bridge.rb', line 10 def table_name name = self.name.demodulize.underscore set_table_name(name) name end |