Module: SupportTable::ClassMethods
- Defined in:
- lib/support_table.rb
Instance Method Summary collapse
-
#support_table(data_file: nil, key_attribute: nil, attribute_helpers: nil, cache_by: nil, cache: :memory, ttl: nil) ⇒ void
Define details about the support table.
Instance Method Details
#support_table(data_file: nil, key_attribute: nil, attribute_helpers: nil, cache_by: nil, cache: :memory, ttl: nil) ⇒ void
This method returns an undefined value.
Define details about the support table. You only need to call this method if you need to override any of the defaults. See SupportTableData and SupportTableCache for more details.
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/support_table.rb', line 74 def support_table(data_file: nil, key_attribute: nil, attribute_helpers: nil, cache_by: nil, cache: :memory, ttl: nil) SupportTable::Definition.new(self).support_table( data_file: data_file, key_attribute: key_attribute, attribute_helpers: attribute_helpers, cache_by: cache_by, cache: cache, ttl: ttl ) end |