Displaying 1 result from an estimated 1 matches for "commercesweep".
Did you mean:
commercesweeper
2008 Jan 26
0
"value must be enumerable" exception when using a sweeper?
...use a problem. And
yet, if I ''observe'' my User model, which is part of my main app and not
an engine or plugin, it still gives me the same exception.
Thanks!
--------------------
application.rb:
cache_sweeper :commerce_sweeper
--------------------
commerce_sweeper.rb:
class CommerceSweeper < ActionController::Caching::Sweeper
observe Product
def after_save(record)
end
end
--------------------
exception:
C:/dev/ruby/lib/ruby/1.8/set.rb:275:in `+''
C:/dev/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/observer.rb:149:in
`initialize''
C:...