Skip to content
Browse files

Avoid ImplicitRender just call render directly

  • Loading branch information...
1 parent 7c90d91 commit b90d24b00e88257e10be30a8831b13d6a7de27d5 @spastorino spastorino committed Mar 6, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/action_controller/metal/mime_responds.rb
View
4 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -6,8 +6,6 @@ module ActionController #:nodoc:
module MimeResponds
extend ActiveSupport::Concern
- include ActionController::ImplicitRender
-
included do
class_attribute :responder, :mimes_for_respond_to
self.responder = ActionController::Responder
@@ -193,7 +191,7 @@ def respond_to(*mimes, &block)
if collector = retrieve_collector_from_mimes(mimes, &block)
response = collector.response
- response ? response.call : default_render({})
+ response ? response.call : render({})
end
end

0 comments on commit b90d24b

Please sign in to comment.
Something went wrong with that request. Please try again.