aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/filters.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-05 00:38:09 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-05 00:38:09 +0000
commitefe0348486aee9b19877e730a6a07db9c717f2f2 (patch)
tree7c7fd7eed5152e056b8a30bb5e9ea9b5db6a123f /actionpack/lib/action_controller/filters.rb
parentf92ae75a23cddbdc6e55fc17dcf5052fba330c75 (diff)
downloadrails-efe0348486aee9b19877e730a6a07db9c717f2f2.tar.gz
rails-efe0348486aee9b19877e730a6a07db9c717f2f2.tar.bz2
rails-efe0348486aee9b19877e730a6a07db9c717f2f2.zip
Added the possibility of passing nil to UrlHelper#link_to to use the link itself as the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/filters.rb')
-rw-r--r--actionpack/lib/action_controller/filters.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/filters.rb b/actionpack/lib/action_controller/filters.rb
index bd5c545dfb..1691f031f8 100644
--- a/actionpack/lib/action_controller/filters.rb
+++ b/actionpack/lib/action_controller/filters.rb
@@ -130,15 +130,15 @@ module ActionController #:nodoc:
# The passed <tt>filters</tt> will be appended to the array of filters that's run _before_ actions
# on this controller are performed.
def append_before_filter(*filters, &block)
- filters << block if block_given?
- append_filter_to_chain("before", filters)
+ filters << block if block_given?
+ append_filter_to_chain("before", filters)
end
# The passed <tt>filters</tt> will be prepended to the array of filters that's run _before_ actions
# on this controller are performed.
def prepend_before_filter(*filters, &block)
- filters << block if block_given?
- prepend_filter_to_chain("before", filters)
+ filters << block if block_given?
+ prepend_filter_to_chain("before", filters)
end
# Short-hand for append_before_filter since that's the most common of the two.
@@ -147,15 +147,15 @@ module ActionController #:nodoc:
# The passed <tt>filters</tt> will be appended to the array of filters that's run _after_ actions
# on this controller are performed.
def append_after_filter(*filters, &block)
- filters << block if block_given?
- append_filter_to_chain("after", filters)
+ filters << block if block_given?
+ append_filter_to_chain("after", filters)
end
# The passed <tt>filters</tt> will be prepended to the array of filters that's run _after_ actions
# on this controller are performed.
def prepend_after_filter(*filters, &block)
- filters << block if block_given?
- prepend_filter_to_chain("after", filters)
+ filters << block if block_given?
+ prepend_filter_to_chain("after", filters)
end
# Short-hand for append_after_filter since that's the most common of the two.