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

Drop Railtie initializer #4

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Drop Railtie initializer #4

merged 1 commit into from
Jul 23, 2020

Conversation

sharshenov
Copy link
Member

The Railtie initializer makes the patch to be applied much later than ActiveJob is loaded.
It could lead to a NoMethodError if something unusual happens during Rails application load (like calling Rails.application.eager_load! in an initializer)

NoMethodError: undefined method `unique' for MyJob:Class

fixes #3

The Railtie initializer makes the patch to be applied much later than ActiveJob is loaded.
It could lead to a NoMethodError if something unusual happens during Rails application load (like calling `Rails.application.eager_load!` in an initializer)

```
NoMethodError: undefined method `unique' for MyJob:Class
```

fixes #3
@sharshenov sharshenov merged commit 9ac6345 into master Jul 23, 2020
@sharshenov sharshenov deleted the drop-railtie-initializer branch July 23, 2020 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undefined method unique' on calling Rails.application.eager_load!` in rails initializer of other gem
1 participant