Class: Telebugs::Rails::Middleware::ReporterInfo

Inherits:
BaseMiddleware
  • Object
show all
Defined in:
lib/telebugs/rails/middleware/reporter_info.rb

Constant Summary collapse

REPORTER =
{
  library: {name: "telebugs-rails", version: Telebugs::Rails::VERSION}.freeze,
  platform: {name: "Rails", version: Rails.version}.freeze
}.freeze

Instance Method Summary collapse

Instance Method Details

#call(report) ⇒ Object



10
11
12
# File 'lib/telebugs/rails/middleware/reporter_info.rb', line 10

def call(report)
  report.data[:reporters] << REPORTER
end