Class: Raygun::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/raygun/railtie.rb

Class Method Summary collapse

Class Method Details

.setup_error_subscriberObject



42
43
44
45
46
# File 'lib/raygun/railtie.rb', line 42

def self.setup_error_subscriber
  if ::Rails.version.to_f >= 7.0 && Raygun.configuration.register_rails_error_handler
    Rails.error.subscribe(Raygun::ErrorSubscriber.new)
  end
end