Sha256: 1082f2fbe38114b654a31b476b47c1f07172cfa90f1c33a7858d78310a8bd7e8
Contents?: true
Size: 766 Bytes
Versions: 24
Compression:
Stored size: 766 Bytes
Contents
module RorVsWild module Plugin class ActionView def self.setup return if @installed return unless defined?(::ActiveSupport::Notifications.subscribe) ActiveSupport::Notifications.subscribe("render_partial.action_view", new) ActiveSupport::Notifications.subscribe("render_template.action_view", new) @installed = true end def start(name, id, payload) RorVsWild::Section.start end def finish(name, id, payload) RorVsWild::Section.stop do |section| section.kind = "view".freeze section.command = RorVsWild.agent.relative_path(payload[:identifier]) section.file = section.command section.line = 1 end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems