Skip to content
Browse files

adding attr_reader :response

  • Loading branch information...
1 parent 3e78eb3 commit d1f163ee075c9fce6a2b42837b2d688f9f9e17a3 @georgeguimaraes georgeguimaraes committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/responders_backport/responder.rb
View
3 lib/responders_backport/responder.rb
@@ -78,7 +78,7 @@ module ActionController #:nodoc:
# Check polymorphic_url documentation for more examples.
#
class Responder
- attr_reader :controller, :request, :format, :resource, :resources, :options
+ attr_reader :controller, :request, :response, :format, :resource, :resources, :options
ACTIONS_FOR_VERBS = {
:post => :new,
@@ -88,6 +88,7 @@ class Responder
def initialize(controller, resources, options={})
@controller = controller
@request = controller.request
+ @response = controller.response
@format = controller.formats.first
@resource = resources.is_a?(Array) ? resources.last : resources
@resources = resources

0 comments on commit d1f163e

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