diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/components.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 7a6c6139d4..409998525d 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -43,7 +43,9 @@ module ActionController #:nodoc: private def component_response(options, reuse_response = true) - component_class(options).process(request_for_component(options), reuse_response ? @response : response_for_component) + c = component_class(options) + c.after_filter {|c| flash.keep } + c.process(request_for_component(options), reuse_response ? @response : response_for_component) end def component_class(options) |