acts_as_searchable.rb 204 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 class << ActiveRecord::Base def acts_as_searchable(options = {}) acts_as_ferret({ :remote => true }.merge(options)) def find_by_contents(*args) find_with_ferret(*args) end end end