Import ActionController::MissingRenderer from Rails#245
Conversation
|
@zzak I can get this into responders and released, but we'll have to update the Rails side of things a bit apparently... we might also have to detect here if the constant is not already defined or something (suppressing possible warnings), I think? |
|
@carlosantoniodasilva Thanks for the ping, yeah I'm not sure but maybe we can do I have to fix the tests (and probably rebase) upstream too, but I think the right thing to do is do the check on responders side. |
4179e62 to
80a5470
Compare
80a5470 to
bdf7d11
Compare
|
@carlosantoniodasilva Finally got around to this again, and after fixing the deprecation on Rails side, I think the best path forward is to rename the constant inside this gem. If someone is using an unpatched version of the That was before I renamed it internally, I don't think is a problem, if someone is catching this error manually they will also get the warning. The solution will be to update the There is a gap however, if someone skips the version of Rails which emits the deprecation warning AND has an unpatched responders gem their code may break -- but that is an acceptable trade-off and people should perform upgrades gradually without skipping. |
|
@zzak I guess one potential issue is that if they're catching this error in their own code, it might break if we raise a different one on a new responders gem (if they just upgrade responders) We could maybe inherit from |
Happened upon this exception when patching this file in rails/rails#48327, the documentation references a method which was moved to this gem, and nothing else in Rails uses it internally.
I think we can move it here and deprecate it from Rails, which I've started working on in rails/rails#48328