mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix failing ActionCacheFilter tests due to around filter changes.
This commit is contained in:
parent
1e2628431a
commit
f2f58f5355
2 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ module ActionController #:nodoc:
|
|||
|
||||
# TODO: Remove once New Base is merged
|
||||
if defined?(ActionController::Http)
|
||||
def around_process_action(controller)
|
||||
def filter(controller)
|
||||
should_continue = before(controller)
|
||||
yield if should_continue
|
||||
after(controller)
|
||||
|
|
|
@ -313,8 +313,8 @@ module ActiveSupport
|
|||
#{method_name}_object.send("filter", self, &blk)
|
||||
# TODO: Deprecate this
|
||||
elsif #{method_name}_object.respond_to?(:before) && #{method_name}_object.respond_to?(:after)
|
||||
#{method_name}_object.before(self)
|
||||
yield
|
||||
should_continue = #{method_name}_object.before(self)
|
||||
yield if should_continue
|
||||
#{method_name}_object.after(self)
|
||||
else
|
||||
#{method_name}_object.send("#{kind}_#{name}", self, &blk)
|
||||
|
|
Loading…
Reference in a new issue