features/step_definitions/configuration_steps.rb in activeadmin-1.0.0.pre1 vs features/step_definitions/configuration_steps.rb in activeadmin-1.0.0.pre2
- old
+ new
@@ -1,9 +1,9 @@
module ActiveAdminReloading
def load_aa_config(config_content)
- ActiveAdmin::Event.dispatch ActiveAdmin::Application::BeforeLoadEvent, ActiveAdmin.application
+ ActiveSupport::Notifications.publish ActiveAdmin::Application::BeforeLoadEvent, ActiveAdmin.application
eval(config_content)
- ActiveAdmin::Event.dispatch ActiveAdmin::Application::AfterLoadEvent, ActiveAdmin.application
+ ActiveSupport::Notifications.publish ActiveAdmin::Application::AfterLoadEvent, ActiveAdmin.application
Rails.application.reload_routes!
ActiveAdmin.application.namespaces.each &:reset_menu!
end
end