Just discovered something, thought I'd share in case anyone else was
trying to use active record observers.  In rails you define your
observers in the environment.rb and it instantiates them somewhere
during startup.

To use that in merb you have to define the observers and then also
instantiate them.  Add something like this to the end of the
merb_init.rb file.

ActiveRecord::Base.observers << :attachment_observer
ActiveRecord::Base.instantiate_observers

At least its working for me from merb -i right now.
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to