Class: Appsignal::EventFormatter::ViewComponent::RenderFormatter

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

Constant Summary collapse

BLANK =
""

Instance Method Summary collapse

Instance Method Details

#format(payload) ⇒ Object



10
11
12
# File 'lib/appsignal/event_formatter/view_component/render_formatter.rb', line 10

def format(payload)
  [payload[:name], payload[:identifier].sub(root_path, BLANK)]
end

#root_pathObject



14
15
16
# File 'lib/appsignal/event_formatter/view_component/render_formatter.rb', line 14

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