aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-29 11:13:08 +0200
committerYehuda Katz <wycats@gmail.com>2009-07-29 12:06:03 -0700
commitbbe86077c2148559f7548520303b2e683ff86119 (patch)
treea7df321737a77f467979df88900dc52b907a49b3 /actionpack/lib/action_controller/base
parent67b2d08c0a64ddec3a0c4e1c0b5d96bd418cceef (diff)
downloadrails-bbe86077c2148559f7548520303b2e683ff86119.tar.gz
rails-bbe86077c2148559f7548520303b2e683ff86119.tar.bz2
rails-bbe86077c2148559f7548520303b2e683ff86119.zip
Added tests for respond_to class method.
Signed-off-by: Yehuda Katz <wycats@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller/base')
-rw-r--r--actionpack/lib/action_controller/base/mime_responds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base/mime_responds.rb b/actionpack/lib/action_controller/base/mime_responds.rb
index ece4920a23..0ce6660c98 100644
--- a/actionpack/lib/action_controller/base/mime_responds.rb
+++ b/actionpack/lib/action_controller/base/mime_responds.rb
@@ -151,7 +151,7 @@ module ActionController #:nodoc:
block.call(responder) if block_given?
mimes = collect_mimes_from_class_level if mimes.empty?
- mimes.each { |mime| responder.custom(mime) }
+ mimes.each { |mime| responder.send(mime) }
if format = request.negotiate_mime(responder.order)
# TODO It should be just: self.formats = [ :foo ]