aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/mime_responds.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/mime_responds.rb b/actionpack/lib/action_controller/mime_responds.rb
index 44b9dd933c..04ec1e5dd8 100644
--- a/actionpack/lib/action_controller/mime_responds.rb
+++ b/actionpack/lib/action_controller/mime_responds.rb
@@ -51,6 +51,10 @@ module ActionController #:nodoc:
end
EOT
end
+
+ def any(*args, &block)
+ args.each { |type| send(type, &block) }
+ end
def respond
for priority in @mime_type_priority