Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -1/+1 |
| | |||||
* | Deprecate all *_filter callbacks in favor of *_action callbacks | Rafael Mendonça França | 2014-05-27 | 1 | -190/+190 |
| | | | | | This is the continuation of the work started at 9d62e04838f01f5589fa50b0baa480d60c815e2c | ||||
* | Tests that skips a controller filters that was set up using a class | Ionatan Wiznia | 2014-02-06 | 1 | -0/+16 |
| | |||||
* | Unused classes in AP tests | Akira Matsuda | 2013-12-25 | 1 | -11/+0 |
| | |||||
* | Revert "Port all remaining self.protected_instance_variables to class methods" | Łukasz Strzałkowski | 2013-09-02 | 1 | -1/+1 |
| | | | | This reverts commit 7de994fa215e9f4c2856d85034bc4dd7b65d0c01. | ||||
* | Port all remaining self.protected_instance_variables to class methods | Łukasz Strzałkowski | 2013-08-29 | 1 | -1/+1 |
| | |||||
* | Execute conditional procs on controller filters only for current action. | Nicholas Jakobsen | 2013-08-10 | 1 | -0/+9 |
| | | | | | | :only and :except options for controller filters are now added before :if and :unless. This prevents running :if and :unless procs when not on the specified. Closes #11786. | ||||
* | Merge pull request #10591 from acapilleri/cond_callback_test | Aaron Patterson | 2013-05-15 | 1 | -0/+13 |
|\ | | | | | add test for skip_before_filter with condition | ||||
| * | add test for skip_before_filter with condition | Angelo capilleri | 2013-05-13 | 1 | -0/+13 |
| | | |||||
* | | use public api for testing rather than grabbing instance variables | Aaron Patterson | 2013-05-14 | 1 | -1/+1 |
|/ | |||||
* | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 1 | -5/+3 |
| | |||||
* | Remove observers and sweepers | Rafael Mendonça França | 2012-11-28 | 1 | -41/+0 |
| | | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik] | ||||
* | AS::Callbacks: deprecate monkey patch of object callbacks | Bogdan Gusiev | 2012-09-07 | 1 | -7/+7 |
| | |||||
* | Clean up Sweeper controller accessor when an Error is raised | Brian John | 2012-07-20 | 1 | -0/+11 |
| | |||||
* | AS::Callbacks: deprecate monkey patch code | Bogdan Gusiev | 2012-06-26 | 1 | -0/+12 |
| | | | | | Deprecate usage of filter object with #before and #after methods as around callback | ||||
* | prevent the cache sweeper ignores NoMethodError | ayaya | 2012-03-29 | 1 | -0/+7 |
| | |||||
* | Remove unused global variable in controller filters test | Alexey Vakhov | 2012-02-23 | 1 | -2/+0 |
| | |||||
* | Move render_to_body logic to return a spaced string to AC::Rendering | Carlos Antonio da Silva | 2012-01-17 | 1 | -2/+0 |
| | | | | | | | | | | | This seems to be required only when calling render :partial with an empty collection from a controller. This call happens to return no content, letting the response body empty, which means to Rails that it should go on and try to find a template to render based on the current action name, thus failing hard. Although tests keep all green, we need to check a better way to fix this. | ||||
* | Remove rescue_action from compatibility module and tests | Carlos Antonio da Silva | 2012-01-17 | 1 | -12/+0 |
| | |||||
* | get rid of using instance_variable_names method from AS | Sergey Nartimov | 2012-01-07 | 1 | -1/+1 |
| | | | | | - instance_variables return symbols in 1.9 - there is instance_variable_defined? method | ||||
* | Tests only after filters in cache sweepers | Jeroen Jacobs | 2011-06-22 | 1 | -0/+5 |
| | |||||
* | Fix filter :only and :except with implicit actions | Andrew White | 2011-03-23 | 1 | -11/+16 |
| | | | | | | | The method_name argument is "default_render" for implicit actions so use the action_name attribute to determine which callbacks to run. [#5673 state:resolved] | ||||
* | Add a failing test case for an implicit action with a before filter. | Manfred Stienstra | 2011-03-23 | 1 | -0/+22 |
| | | | | Signed-off-by: Andrew White <andyw@pixeltrix.co.uk> | ||||
* | cleaning up some warnings on 1.9.3 | Aaron Patterson | 2011-02-07 | 1 | -5/+5 |
| | |||||
* | Make after_filter halt when before_filter renders or redirects [#5648 ↵ | Marcelo Giorgi | 2010-11-11 | 1 | -2/+79 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fixing a few test warnings | Aaron Patterson | 2010-10-04 | 1 | -2/+2 |
| | |||||
* | We can't assign @view_context_class here, define super() in test instead if ↵ | Emilio Tagua | 2010-09-29 | 1 | -0/+1 |
| | | | | we want to avoid warnings. | ||||
* | Remove more warnings on AP. | Emilio Tagua | 2010-09-28 | 1 | -1/+1 |
| | |||||
* | Remove deprecated stuff in ActionController | Carlos Antonio da Silva | 2010-09-26 | 1 | -1/+2 |
| | | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController. | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Better test for ticket [#3914 state:resolved] | Neeraj Singh | 2010-06-09 | 1 | -0/+11 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | cache_sweeper yields blank output | Neeraj Singh | 2010-06-08 | 1 | -0/+6 |
| | | | | | | [#3914 state:open] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use better assertion methods for testing | Neeraj Singh | 2010-05-19 | 1 | -7/+7 |
| | | | | | | [#4645 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Modify assert_template to use notifications. Also, remove ↵ | Carlhuda | 2010-03-17 | 1 | -2/+2 |
| | | | | ActionController::Base#template since it is no longer needed. | ||||
* | deOMGifying Railties, Active Support, and Action Pack | Mikel Lindsaar | 2010-01-31 | 1 | -3/+3 |
| | |||||
* | Symbol#to_proc is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -1/+0 |
| | |||||
* | Cleaning up more tests and code that needed to work in both old and new base | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -50/+18 |
| | |||||
* | YAGNI Method references. Deprecated | Yehuda Katz | 2009-06-02 | 1 | -4/+6 |
| | |||||
* | Get all the callback tests to work on new base | Yehuda Katz + Carl Lerche | 2009-06-01 | 1 | -22/+46 |
| | |||||
* | Make sure tests pass action name to Controller.action() | Pratik Naik | 2009-05-30 | 1 | -1/+1 |
| | |||||
* | Added a compatibility layer to get legacy filter tests to pass on new base | Yehuda Katz + Carl Lerche | 2009-05-27 | 1 | -5/+27 |
| | |||||
* | Make Filter#filter work with around filters | Pratik Naik | 2009-05-25 | 1 | -59/+54 |
| | |||||
* | Cordon off missing filter methods | Jeremy Kemper | 2009-05-22 | 1 | -0/+8 |
| | |||||
* | Remove gratuitous filter_chain internal testing. Not part of the API and ↵ | Jeremy Kemper | 2009-05-22 | 1 | -25/+0 |
| | | | | other tests are sufficient to catch regressions. | ||||
* | Rescue hack was supposed to be removed. Some how it crept back in. | Joshua Peek | 2009-05-17 | 1 | -1/+0 |
| | |||||
* | Merge branch 'master' into wip_abstract_controller | Yehuda Katz + Carl Lerche | 2009-05-11 | 1 | -0/+5 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/abstract/callbacks.rb actionpack/lib/action_controller/abstract/renderer.rb actionpack/lib/action_controller/base/base.rb actionpack/lib/action_controller/dispatch/dispatcher.rb actionpack/lib/action_controller/routing/route_set.rb actionpack/lib/action_controller/testing/process.rb actionpack/test/abstract_controller/layouts_test.rb actionpack/test/controller/filters_test.rb actionpack/test/controller/helper_test.rb actionpack/test/controller/render_test.rb actionpack/test/new_base/test_helper.rb | ||||
| * | Extract ActionController rescue templates into Rescue and ShowExceptions ↵ | Joshua Peek | 2009-05-02 | 1 | -0/+5 |
| | | | | | | | | | | middleware. This commit breaks all exception catching plugins like ExceptionNotifier. These plugins should be rewritten as middleware instead overriding Controller#rescue_action_in_public. | ||||
| * | Deprecate Controller.process interface | Joshua Peek | 2009-05-02 | 1 | -1/+1 |
| | | |||||
* | | Implement FooController.action(:name) | Yehuda Katz | 2009-05-02 | 1 | -1/+2 |
|/ | | | | | | * Rails actions are now Rack endpoints, and can be retrieved via FooController.action(name) and called with an env * Updated some tests that relied on the old internal #process/#call implementation | ||||
* | Update some old tests to use AC TestProcess | Joshua Peek | 2009-04-30 | 1 | -12/+13 |
| |