Sha256: 0c89c7444a8416fa8a3f61a93ab48931f136cee62b1e74e85d1c5838fc961a11
Contents?: true
Size: 776 Bytes
Versions: 2
Compression:
Stored size: 776 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.commands << RorVsWild.agent.locator.relative_path(payload[:identifier]) section.file = section.command section.line = 1 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rorvswild-1.8.1 | lib/rorvswild/plugin/action_view.rb |
rorvswild-1.8.0 | lib/rorvswild/plugin/action_view.rb |