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-0.12.beta.53 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.52 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.51 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.50 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.49 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.48 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.47 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.46 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.45 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.44 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.43 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.42 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.41 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.40 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.39 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.38 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.37 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.36 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.35 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.34 lib/appsignal/event_formatter/action_view/render_formatter.rb