[Ruby] rails observers and class reloading
Aaron Patterson
aaron at tenderlovemaking.com
Tue May 8 08:45:11 PDT 2007
Hello! Has anyone had a problem (in rails) with observers not getting
reloaded? Basically when I am running in development mode my models
will get reloaded, but the observers don't! Since the observers aren't
reloaded, they don't run.
I found this ticket on this issue:
http://dev.rubyonrails.org/ticket/6942
But then in observer.rb, I found this:
# Observer subclasses should be reloaded by the dispatcher in Rails
# when Dependencies.mechanism = :load.
I tried setting that setting, but it didn't seem to work. It could be
that I set it incorrectly though.... Has anyone else run in to this
problem, or have a work around?
--
Aaron Patterson
http://tenderlovemaking.com/
More information about the Ruby
mailing list