Skip to content

Instantly share code, notes, and snippets.

@rurounijones
Created September 18, 2012 00:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurounijones/3740558 to your computer and use it in GitHub Desktop.
Save rurounijones/3740558 to your computer and use it in GitHub Desktop.
Delete LogSubscribers kludge
config.after_initialize do
notifier = ActiveSupport::Notifications.notifier
subscribers = notifier.listeners_for("sql.active_record")
subscribers += notifier.listeners_for("identify.active_record")
subscribers += notifier.listeners_for("start_processing.action_controller")
subscribers += notifier.listeners_for("process_action.action_controller")
subscribers += notifier.listeners_for("render_template.action_view")
subscribers += notifier.listeners_for("render_partial.action_view")
subscribers += notifier.listeners_for("deprecation.rails")
subscribers.each {|s| ActiveSupport::Notifications.unsubscribe s }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment