lib/erp_search/engine.rb in erp_search-3.0.0 vs lib/erp_search/engine.rb in erp_search-3.0.1
- old
+ new
@@ -6,8 +6,14 @@
#add observers
#this is ugly need a better way
observers = [:party_observer, :contact_observer]
(config.active_record.observers.nil?) ? config.active_record.observers = observers : config.active_record.observers += observers
-
+
+ #TODO
+ #this will be removed once rails 3.2 adds the ability to set the order of engine loading
+ engine = self
+ config.to_prepare do
+ ErpBaseErpSvcs.register_compass_ae_engine(engine)
+ end
end
end