Module: Mobility::Backends::Table::ClassMethods

Defined in:
lib/mobility/backends/table.rb

Instance Method Summary collapse

Instance Method Details

#apply_plugin(name) ⇒ Object

Apply custom processing for plugin


120
121
122
123
124
125
126
127
# File 'lib/mobility/backends/table.rb', line 120

def apply_plugin(name)
  if name == :cache
    include self::Cache
    true
  else
    super
  end
end

#table_alias(locale) ⇒ Object


129
130
131
# File 'lib/mobility/backends/table.rb', line 129

def table_alias(locale)
  "#{table_name}_#{Mobility.normalize_locale(locale)}"
end