0
@@ -100,10 +100,10 @@ module ActionController #:nodoc:
0
# Around filters wrap an action, executing code both before and after.
0
# They may be declared as method references, blocks, or objects responding
0
- # to
#filter or to both #before and #after.
0
+ # to
+filter+ or to both +before+ and +after+.
0
- # To use a method as an around_filter, pass a symbol naming the Ruby method.
0
- # Yield (or block.call) within the method to run the action.
0
+ # To use a method as an +around_filter+, pass a symbol naming the Ruby method.
0
+ # Yield (or <tt>block.call</tt>) within the method to run the action.
0
# around_filter :catch_exceptions
0
@@ -115,9 +115,9 @@ module ActionController #:nodoc:
0
- # To use a block as an
around_filter, pass a block taking as args both
0
+ # To use a block as an
+around_filter+, pass a block taking as args both
0
# the controller and the action block. You can't call yield directly from
0
- # an
around_filter block; explicitly call the action block instead:
0
+ # an
+around_filter+ block; explicitly call the action block instead:
0
# around_filter do |controller, action|
0
# logger.debug "before #{controller.action_name}"
0
@@ -125,7 +125,7 @@ module ActionController #:nodoc:
0
# logger.debug "after #{controller.action_name}"
0
- # To use a filter object with
around_filter, pass an object responding
0
+ # To use a filter object with
+around_filter+, pass an object responding
0
# to <tt>:filter</tt> or both <tt>:before</tt> and <tt>:after</tt>. With a
0
# filter method, yield to the block as above:
0
@@ -137,7 +137,7 @@ module ActionController #:nodoc:
0
- # With
before and after methods:
0
+ # With
+before+ and +after+ methods:
0
# around_filter Authorizer.new
0
@@ -154,9 +154,9 @@ module ActionController #:nodoc:
0
- # If the filter has before and after methods, the before method will be
0
- # called before the action. If before renders or redirects, the filter chain is
0
- # halted and after will not be run. See Filter Chain Halting below for
0
+ # If the filter has +before+ and +after+ methods, the +before+ method will be
0
+ # called before the action. If +before+ renders or redirects, the filter chain is
0
+ # halted and +after+ will not be run. See Filter Chain Halting below for
0
# == Filter chain skipping
0
@@ -215,7 +215,7 @@ module ActionController #:nodoc:
0
# <tt>before_filter</tt> and <tt>around_filter</tt> may halt the request
0
# before a controller action is run. This is useful, for example, to deny
0
- # access to unauthenticated users or to redirect from
http to https.
0
+ # access to unauthenticated users or to redirect from
HTTP to HTTPS.
0
# Simply call render or redirect. After filters will not be executed if the filter
0
@@ -241,10 +241,10 @@ module ActionController #:nodoc:
0
# #after (actual filter code is run, unless the around filter does not yield)
0
- # If #around returns before yielding, #after will still not be run. The #before
0
- # filter and controller action will not be run. If #before renders or redirects,
0
- # the second half of #around and will still run but #after and the
0
- # action will not. If #around fails to yield, #after will not be run.
0
+ # If +around+ returns before yielding, +after+ will still not be run. The +before+
0
+ # filter and controller action will not be run. If +before+ renders or redirects,
0
+ # the second half of +around+ and will still run but +after+ and the
0
+ # action will not. If +around+ fails to yield, +after+ will not be run.
0
class FilterChain < ActiveSupport::Callbacks::CallbackChain #:nodoc:
0
def append_filter_to_chain(filters, filter_type, &block)
0
@@ -471,7 +471,7 @@ module ActionController #:nodoc:
0
# Shorthand for append_after_filter since it's the most common.
0
alias :after_filter :append_after_filter
0
- # If you
append_around_filter A.new, B.new, the filter chain looks like
0
+ # If you
<tt>append_around_filter A.new, B.new</tt>, the filter chain looks like