Module: Traits::Attribute::Querying
- Included in:
- Traits::Attribute
- Defined in:
- lib/traits/attribute/querying.rb
Instance Method Summary collapse
Instance Method Details
#arel ⇒ Object
7 8 9 10 11 12 13 14 |
# 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 |