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

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

Instance Method Summary collapse

Instance Method Details

#include_cacheObject

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_keysObject


117
118
119
# File 'lib/mobility/backends/table.rb', line 117

def valid_keys
  [:association_name, :subclass_name, :foreign_key, :table_name]
end