Class: Carrier::Configuration::Models
- Inherits:
-
Object
- Object
- Carrier::Configuration::Models
- Includes:
- Singleton
- Defined in:
- lib/carrier/configuration/models.rb
Instance Attribute Summary collapse
-
#tables ⇒ Object
Returns the value of attribute tables.
Instance Method Summary collapse
Instance Attribute Details
#tables ⇒ Object
Returns the value of attribute tables.
7 8 9 |
# File 'lib/carrier/configuration/models.rb', line 7 def tables @tables end |
Instance Method Details
#default_tables ⇒ Object
22 23 24 25 26 27 |
# File 'lib/carrier/configuration/models.rb', line 22 def default_tables { :message => 'messages', :chain => 'chains' } end |
#table_for(model) ⇒ Object
9 10 11 |
# File 'lib/carrier/configuration/models.rb', line 9 def table_for model tables[model] end |