mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Unfortunately #respond_to?(:controller) won't work as suggested, nor will respond_to?(:params), as #controller is present and #params is delegated to #controller. #delegate makes respond_to? return true regardless whether the target responds to it.