Do not swallow unknown configuration options for ActiveJob#39472
Do not swallow unknown configuration options for ActiveJob#39472rafaelfranca merged 1 commit intorails:masterfrom
Conversation
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
If users had set the wrong option for an app in production env, the app would raise an exception and not start after upgrading Rails. |
|
This reflects other subframeworks behavior, for example Raising is safer, imo, especially in production, because warning 99% would be unnoticed in logs. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This is still valid. |
|
This seems to have broken some Active Job config with eager-loading enabled ( Reproduction steps:
Expected output: |
|
This is a symptom that Active Job is being loaded earlier than |
|
Yeah, that’s the case as far as I could tell. Surprising, but I guess nothing besides AJ |
|
Er, maybe not. I was only looking at |
Problem:
In
application.rbI made a mistakeAnd in console I'm seeing:
So instead of swallowing nonexistent configs like spelling mistakes and wondering why everything is broken 😄 , it should be helpful to raise an error.