lib/timber/events/template_render.rb in timber-2.0.24 vs lib/timber/events/template_render.rb in timber-2.1.0.rc1

- old
+ new

@@ -1,5 +1,7 @@ +require "timber/event" + module Timber module Events # The template render event track template renderings and their performance. # # @note This event should be installed automatically through integrations, @@ -17,9 +19,10 @@ def to_hash {name: name, time_ms: time_ms} end alias to_h to_hash + # Builds a hash representation of containing simply objects, suitable for serialization. def as_json(_options = {}) {:template_render => to_hash} end end end \ No newline at end of file