aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/filters.rb
Commit message (Collapse)AuthorAgeFilesLines
* Restore the more readable before_ and after_filters methods since they ↵Jeremy Kemper2008-07-141-10/+2
| | | | aren't called frequently
* Don't repeatedly convert only/except optionsJeremy Kemper2008-07-091-3/+28
|
* Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved]Cheah Chu Yeow2008-07-091-4/+12
|
* Fix rdoc for Filters::ClassMethodsJeremy Kemper2008-07-041-195/+194
|
* Merge docrails.Pratik Naik2008-05-251-20/+20
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-4/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Tidy up ActiveSupport::Callbacks::CallbackChain instance API.Joshua Peek2008-04-171-3/+3
|
* Replaced callback method evaluation in AssociationCollection class to use ↵Josh Peek2008-04-041-2/+8
| | | | | | ActiveSupport::Callbacks. Modified ActiveSupport::Callbacks::Callback#call to accept multiple arguments. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix regression from filter refactoring where re-adding a skipped filter ↵Rick Olson2008-03-231-0/+3
| | | | | | resulted in it being called twice. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor filters to use Active Support callbacks. Closes #11235.Jeremy Kemper2008-03-181-397/+261
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Filter procs must take 1 or 2 arguments. Raise ArgumentError otherwise.Jeremy Kemper2008-01-071-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unnecessary returns from builtin filters since render/return is now ↵Jeremy Kemper2007-10-241-1/+0
| | | | | | sufficient. Closes #9952 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed before_filter halting to happen automatically on render or redirect ↵David Heinemeier Hansson2007-10-211-19/+28
| | | | | | but no longer on simply returning false [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Random hits from the style naziDavid Heinemeier Hansson2007-09-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored in use of extract_options! (closes #9079) [josh]David Heinemeier Hansson2007-07-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix errors with around_filters which do not yield, restore 1.1 behaviour ↵Michael Koziarski2007-07-111-47/+47
| | | | | | with after filters. Closes #8891 [skaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rescuing in around_filters works as expected again [codahale, Stephan Kaes]. ↵Tobias Lütke2007-05-221-0/+5
| | | | | | Closes #8341 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sweep flash when filter chain is halted. Closes #6175. [Caio Chassot ↵Marcel Molina2007-05-061-8/+0
| | | | | | <lists@v2studio.com>] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bug fix for the filter implementationMichael Koziarski2007-05-061-3/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace the current block/continuation filter chain handling by an ↵Rick Olson2007-05-021-62/+147
| | | | | | implementation based on a simple loop. #8226 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Consistent public/protected/private visibility for chained methods. Closes ↵Jeremy Kemper2007-03-131-9/+11
| | | | | | #7813. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Slight doc tweak to #prepend_filter. Closes #6493 [Jeremy Voorhis]Rick Olson2007-01-051-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correctly report which filter halted the chain. References #6699.Jeremy Kemper2006-12-121-5/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More consistent implementation of filter replacement (thanks Martin! closes ↵Jamis Buck2006-10-211-42/+22
| | | | | | #5949) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* make sure filters in subclasses with :only or :except conditions are treated ↵Jamis Buck2006-10-141-2/+29
| | | | | | like skip_filter calls git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r5540@ks: jeremy | 2006-10-08 23:05:30 -0700Jeremy Kemper2006-10-091-73/+73
| | | | | | | | | | | #5949 r5541@ks: jeremy | 2006-10-08 23:07:08 -0700 Fix filter skipping in controller subclasses. r5557@ks: jeremy | 2006-10-08 23:11:24 -0700 Update changelog. Closes #5949, references #6297, references #6299. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug that kept any before_filter except the first one from being able to ↵Rick Olson2006-09-271-5/+4
| | | | | | halt the before_filter chain. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* whitespaceJeremy Kemper2006-09-261-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Filters overhaul including meantime filter support for around filters. ↵Jeremy Kemper2006-09-221-215/+439
| | | | | | Closes #5949. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina ↵Marcel Molina2006-04-291-8/+3
| | | | | | Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Do filter condition lookup against the actual hashMarcel Molina2006-04-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Honor skipping filters conditionally for only certain actions even when the ↵Marcel Molina2006-04-051-0/+13
| | | | | | parent class sets that filter to conditionally be executed only for the same actions. Closes #4522. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance speedup for ActionController (closes #4174) [Stefan Kaes] ↵David Heinemeier Hansson2006-03-201-4/+4
| | | | | | Includes caching of filter chains -- be on the lookout for problems with that! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The session should be saved even if the filter chain is stoppedDavid Heinemeier Hansson2006-02-121-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stopped the massive bleeding of concerns into ActionController::Base. Base ↵David Heinemeier Hansson2006-02-121-4/+21
| | | | | | no longer knows about flash, filters, or components. This may well have introduced some instability, please do test with apps, especially the ones using components. [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add caution and restyle componentsDavid Heinemeier Hansson2006-02-121-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major components cleanup and speedup. Closes #3527.Jeremy Kemper2006-02-091-6/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace dubious controller parent class in filter docs. Closes #3655, #3722.Marcel Molina2006-02-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :only and :except controls to skip_before/after_filter just like for ↵David Heinemeier Hansson2006-01-311-4/+20
| | | | | | when you add filters [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added skip_before_filter/skip_after_filter for easier control of the filter ↵David Heinemeier Hansson2005-11-041-0/+37
| | | | | | chain in inheritance hierachies [DHH] Added short-hand to assert_tag so assert_tag :tag => "span" can be written as assert_tag "span" [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed docs (closes #2468)David Heinemeier Hansson2005-10-261-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed #1774 againDavid Heinemeier Hansson2005-07-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1936 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance with 5-30% through a series of Action Pack ↵David Heinemeier Hansson2005-07-231-8/+8
| | | | | | optimizations #1811 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Log if filters return false and halt execution #1735 [Michael Koziarski]David Heinemeier Hansson2005-07-171-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Faster action_exempted? #1231 [skaen]David Heinemeier Hansson2005-05-191-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed doc #1291David Heinemeier Hansson2005-05-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added conditions to around_filters just like before_filter and after_filterDavid Heinemeier Hansson2005-04-271-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that all redirect and render calls now return true, so you can use the ↵David Heinemeier Hansson2005-01-201-4/+4
| | | | | | pattern of "do and return". Added that renders and redirects called in before_filters will have the same effect as returning false: stopping the chain. Added that only one render or redirect can happen per action. The first call wins and subsequent calls are ignored. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de