Would have left this as a comment, but don't have the reputation yet, so figured I might as well leave this as an answer.
In Rails 4, that query as it is currently written throws a long deprecation warning about implicit joins (which is what you're doing by referencing the model_translations
table in the where cause).
I believe you are trying return Model
records, not Model::Translation
records. As such, I think you can swap the includes
for a join
, which should be more performant and gets rid of the deprecation warning.
In my Rails 4 app, the join worked perfectly, but I haven't tested it in Rails 3.