Created
November 14, 2014 04:55
-
-
Save talbright/f4e3c9ed18e92c97928d to your computer and use it in GitHub Desktop.
Rails: instrument output of fragment caching for debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers | |
ActiveSupport::Notifications.subscribe /fragment.action_controller/ do |*args| | |
event = ActiveSupport::Notifications::Event.new *args | |
Rails.logger.info "Notification for event #{event.name} with payload #{event.payload}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment