Sha256: 56408ee2859eb9d74e52076c1576403a9a34ad0d722ec0e8b56529250e29501d

Contents?: true

Size: 536 Bytes

Versions: 173

Compression:

Stored size: 536 Bytes

Contents

module Appsignal
  class EventFormatter
    module ActionView
      class RenderFormatter < Appsignal::EventFormatter
        register 'render_partial.action_view'
        register 'render_template.action_view'

        BLANK = ''.freeze

        attr_reader :root_path

        def initialize
          @root_path = "#{Rails.root.to_s}/".freeze
        end

        def format(payload)
          return nil unless payload[:identifier]
          [payload[:identifier].sub(root_path, BLANK), nil]
        end
      end
    end
  end
end

Version data entries

173 entries across 173 versions & 1 rubygems

Version Path
appsignal-1.1.5.beta.4 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.5.beta.3 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.5.beta.2 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.5.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.4 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.4.beta.3 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.4.beta.2 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.4.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.3 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.3.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.2 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.1.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.0.beta.13 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.0.beta.12 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.0.7 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.0.6 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.0.beta.11 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.0.6.beta.4 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-1.1.0.beta.10 lib/appsignal/event_formatter/action_view/render_formatter.rb