Class: Appsignal::EventFormatter::ActionView::RenderFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/event_formatter/action_view/render_formatter.rb

Constant Summary collapse

BLANK =
""

Instance Method Summary collapse

Instance Method Details

#format(payload) ⇒ Object



10
11
12
13
14
# File 'lib/appsignal/event_formatter/action_view/render_formatter.rb', line 10

def format(payload)
  return nil unless payload[:identifier]

  [payload[:identifier].sub(root_path, BLANK), nil]
end

#root_pathObject



16
17
18
# File 'lib/appsignal/event_formatter/action_view/render_formatter.rb', line 16

def root_path
  @root_path ||= "#{Rails.root}/"
end