views:

159

answers:

0

Given there is a model:

class MenuItem < ActiveRecord::Base
  translates :title
end

and searchlogic is plugged in, I'd expect the following to work:

>> MenuItem.search(:title_like => 'tea')

Sadly, it doesn't:

Searchlogic::Search::UnknownConditionError: The title_like is not a valid condition. You may only use conditions that map to a named scope

Is there a way to make work?


P.S. The closest I managed to get workging, was:

>> MenuItem.search(:globalize_translations_title_like => 'tea')

Which doesn't look nice.