Module: Mobility::Plugins::ActiveRecord::Query

Extended by:
Mobility::Plugin
Defined in:
lib/mobility/plugins/active_record/query.rb

Defined Under Namespace

Modules: BackendMethods, QueryExtension Classes: VirtualRow

Class Method Summary collapse

Methods included from Mobility::Plugin

configure, configure_default, default, dependencies, dependencies_satisfied?, included, included_hook, initialize_hook, requires

Class Method Details

.attribute_alias(attribute, locale = Mobility.locale) ⇒ Object


39
40
41
# File 'lib/mobility/plugins/active_record/query.rb', line 39

def attribute_alias(attribute, locale = Mobility.locale)
  "__mobility_%s_%s__"  % [attribute, ::Mobility.normalize_locale(locale)]
end