It seems to me that Responder#any doesn't actually do what it seems like it should: it should be possible to use Responder#any in respond_to blocks, without having to be required to pass explicit types for all imaginable types, eg, as a catch-all for any requested mime-types not already specified.
For example, in restful_authentication, this is supposed to require non-browser agents to authenticate with http basic:
def access_denied
respond_to do |format|
format.html do
store_location
redirect_to new_<%= controller_singular_name %>_path
end
format.any do
request_http_basic_authentication 'Web Password'
end
end
end
It doesn't work, though, because #any currently requires a list of types. This seems redundant, if it's the intended behavior (if I knew what types, why would I be using any?)
The attached patch (with tests) allows a "naked any", while preserving compatibility with the previous signature.