Module: Translatable::ActiveRecord::Relation

Defined in:
lib/translatable/active_record/relation.rb

Instance Method Summary collapse

Instance Method Details

#exec_queriesObject



4
5
6
7
8
9
10
# File 'lib/translatable/active_record/relation.rb', line 4

def exec_queries
  queries = super

  return queries.map(&:translate) if @translate_records

  queries
end