Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NoMethodError in Bugsnag Railtie #666

Merged
merged 1 commit into from
Jun 22, 2021

Commits on Jun 21, 2021

  1. Fix possible NoMethodError in railtie

    This can happen if Bugsnag is added to the Gemfile with 'require: false'.
    In this case, 'require "bugsnag"' in a Rails initializer will run the
    'config.before_initialize' before the rest of the Railtie has been
    executed. This results in the 'event_subscription' method being
    undefined as it was declared below the line that calls it
    
    By moving it to the top of the file this is no longer a problem
    imjoehaines committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    13aa40e View commit details
    Browse the repository at this point in the history