Thanks to both Carlos and José.
I hadn't realized that in the exception case a whole new Rack app is
run--FailureApp. It all makes more sense now.
I looked at FailureApp and found that there is a default_url that it
redirects to if no scope is set. In our case it would be good enough
to override the default_url that it redirects to for all failure
cases. I saw that :default_url is a cattr_accessor, and I tried
overriding it in the Rails initializater for devise (devise.rb), but
that didn't seem to take effect.
On second look, the default_url is only used if the warden scope is
not set, but I think it's always set. I don't know if I can override
the warden options in env, or if really the only option is to inherit
from FailureApp as José says. If I inherit from FailureApp, I presume
I would set the new FailureApp in the configuration?
Thanks,
Wolf