Class: Appsignal::EventFormatter::ViewComponent::RenderFormatter
- 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_path ⇒ Object
14 15 16 |
# File 'lib/appsignal/event_formatter/view_component/render_formatter.rb', line 14 def root_path @root_path ||= "#{Rails.root}/" end |