pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 468 forks source link

NoMethodError: undefined method `suspended_delta' #228

Closed andriytyurnikov closed 13 years ago

andriytyurnikov commented 13 years ago

/ lib / thinking_sphinx / active_record / delta.rb is never included

so I get ModelClass.suspended_delta NoMethodError: undefined method `suspended_delta'

gem 'thinking-sphinx', :git => 'git://github.com/freelancing-god/thinking-sphinx.git', :branch => 'rails3'

andriytyurnikov commented 13 years ago

dirty monkeypatch fix:

ActiveRecord::Base.send :include, ThinkingSphinx::ActiveRecord::Delta

pat commented 13 years ago

What does your model's define_index block look like?

pat commented 13 years ago

Oh, I've just reproduced it... I think I know what the issue is, will try to get it fixed quickly.

pat commented 13 years ago

Okay, fixed, will be a part of the next gem release, but feel free to grab it from the rails3 branch right now.