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.33 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.32 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.31 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.30 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.29 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.28 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.27 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.26 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.25 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.24 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.23 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.22 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.21 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.20 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.19 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.18 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.17 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.16 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.15 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-0.12.beta.14 lib/appsignal/event_formatter/action_view/render_formatter.rb