Class: Carrier::Configuration::Models

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/carrier/configuration/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tablesObject

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_tablesObject



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