class ChatMessage < ActiveRecord::Base
  belongs_to :chat
  belongs_to :user
end

class ChatMessage < ActiveRecord::Base
  belongs_to :chat
  belongs_to :user
  
  acts_as_ferret({ :fields => { 'chat_id' => {},
                     'body' => { :boost => 1.5 }
                   }, :remote => true
  })

end

Add ferret index to instant messages
Add ferret index to instant messages
