aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/filters.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/filters.rb')
-rw-r--r--actionpack/lib/action_controller/filters.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/filters.rb b/actionpack/lib/action_controller/filters.rb
index 9569672bee..124df970ed 100644
--- a/actionpack/lib/action_controller/filters.rb
+++ b/actionpack/lib/action_controller/filters.rb
@@ -629,13 +629,12 @@ module ActionController #:nodoc:
filter = chain[index]
return call_filter(chain, index.next) if filter.excluded_from?(action_name)
- called = false
+ halted = false
filter.call(self) do
- call_filter(chain, index.next)
- called = true
+ halted = call_filter(chain, index.next)
end
- halt_filter_chain(filter.filter, :no_yield) if called == false
- called
+ halt_filter_chain(filter.filter, :no_yield) if halted == false
+ halted
end
def halt_filter_chain(filter, reason)