Module: Mobility::Plugins::ActiveRecord::ColumnFallback::BackendClassMethods

Defined in:
lib/mobility/plugins/active_record/column_fallback.rb

Instance Method Summary collapse

Instance Method Details

#build_node(attr, locale) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/mobility/plugins/active_record/column_fallback.rb', line 53

def build_node(attr, locale)
  if ColumnFallback.use_column_fallback?(options, locale)
    model_class.arel_table[attr]
  else
    super
  end
end