when i used "find_by_contents" on a legacy table with a different
primary_key than "id" i always got results=nil even when total_hits was
> 0

as a quick fix i changed line 261 in "class_methods.rb"
from:
  conditions = [ "#{self.table_name}.id in (?)", id_array ]

to:
  conditions = [ "#{self.table_name}.#{self.primary_key} in (?)",
id_array ]


i tried to report that as a ticket on
projects.jkraemer.net/acts_as_ferret/ but something is broken there :(
-> internal error "Akismet rejected spam"

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to