Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Require
active_support
, at first.Problem
Outside the rails framework, failed to load
delayed_job
in spite of supportingactive_support
> 5.0.0.like this.
I think that it is bad to failed to load top level
delayed_job
file.The cause is that you failed to load only
active_support/dependencies
without require top level fileactive_support
.I think that you use stand alone
active_support
, must require the top level file like thisrequire 'active_support'
according to http:https://guides.rubyonrails.org/active_support_core_extensions.html#stand-alone-active-supportIn particular, occur this problem when Rails application > 5.0.0 deploies by
capistrano
withbugsnag/capistrano
.Because
capistrano
normally doesn't load rails environments, so doesn't load top level fileactive_support
.