Module: Mobility::Backends::Table::ClassMethods
- Defined in:
- lib/mobility/backends/table.rb
Instance Method Summary collapse
-
#include_cache ⇒ Object
Apply custom processing for cache plugin.
- #table_alias(locale) ⇒ Object
- #valid_keys ⇒ Object
Instance Method Details
#include_cache ⇒ Object
Apply custom processing for cache plugin
122 123 124 |
# File 'lib/mobility/backends/table.rb', line 122 def include_cache include self::Cache end |
#table_alias(locale) ⇒ Object
126 127 128 |
# File 'lib/mobility/backends/table.rb', line 126 def table_alias(locale) "#{table_name}_#{Mobility.normalize_locale(locale)}" end |
#valid_keys ⇒ Object
117 118 119 |
# File 'lib/mobility/backends/table.rb', line 117 def valid_keys [:association_name, :subclass_name, :foreign_key, :table_name] end |