My observers doesn’t get registred by active record.
I’m doing a refactoring of a site into products by the framework
productize (i love the concept).
Currently all my observers are located in “lib” and loaded (i have tried
require and require_dependency) during initialising of the rails-app
(from bottom of environment.rb).
The observers are loaded with the MyObserver.instance after the
declaration of its class. This works in the old app.
I have tried and using the method
Rails::Initializer.run but this doesn’t helps either.
We are using some other peoples code for making productize adoption to
rails 0.14, so its possible that he or she has maked any tweakings that
interfers with default behavior for ActiveRecord::Observer. I have
looked in productize.rb, boot.rb, development.rb and everything seems to
I’m doing any fundamental error here? Any help appreciated!