Have you added sweeper path ?
config.load_paths += %W( #{RAILS_ROOT}/app/sweepers)
On Apr 1, 1:53 am, Jeremy Woertink <li...@ruby-forum.com> wrote:
> Jeremy Woertink wrote:
> > David wrote:
> >> Have you added the sweeper to your list of observers in config/
> >> environment.rb?
>
> > Actually, I had not. I had another sweeper, and my user observer in
> > there. I will try that out, and post back what happens :)
>
> fail :(
>
> config.active_record.observers = :user_observer, :listing_sweeper
>
> This is what I should have, right?
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment