From 7e280c3bff8ac25f1c1938aeaeb1d0b4c0fbb726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 29 Jul 2009 09:36:29 +0200 Subject: Remove Mime::ALL from Mime::SET. Signed-off-by: Yehuda Katz --- actionpack/lib/action_controller/base/mime_responds.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/base/mime_responds.rb b/actionpack/lib/action_controller/base/mime_responds.rb index d717388045..dff4d7b943 100644 --- a/actionpack/lib/action_controller/base/mime_responds.rb +++ b/actionpack/lib/action_controller/base/mime_responds.rb @@ -204,6 +204,7 @@ module ActionController #:nodoc: custom(Mime::ALL, &block) end end + alias :all :any def custom(mime_type, &block) mime_type = mime_type.is_a?(Mime::Type) ? mime_type : Mime::Type.lookup(mime_type.to_s) -- cgit v1.2.3