module Traits::Attribute::Querying

Public Instance Methods

arel() click to toggle source
# File lib/traits/attribute/querying.rb, line 7
def arel
  table = if features.try(:translates_with_globalize?)
    active_record.features.globalize.translation_model_class.arel_table
  else
    model.arel
  end
  table[name]
end