aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/callbacks.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin blockRyuta Kamizono2018-12-211-4/+2
| | | | | | | | | | Currently we sometimes find a redundant begin block in code review (e.g. https://github.com/rails/rails/pull/33604#discussion_r209784205). I'd like to enable `Style/RedundantBegin` cop to avoid that, since rescue/else/ensure are allowed inside do/end blocks in Ruby 2.5 (https://bugs.ruby-lang.org/issues/12906), so we'd probably meets with that situation than before.
* Use frozen string literal in actionpack/Kir Shatrov2017-07-291-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Remove deprecated callbacks from ActionDispatch middlewaresRafael Mendonça França2017-01-311-12/+0
|
* applies new string literal convention in actionpack/libXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Publish AS::Executor and AS::Reloader APIsMatthew Draper2016-03-021-1/+10
| | | | | | These should allow external code to run blocks of user code to do "work", at a similar unit size to a web request, without needing to get intimate with ActionDipatch.
* [ci skip] Fix comment of ActionDispatch::Callbacksyui-knk2014-11-231-1/+1
| | | | cc ddce3dd
* class methods moved to already defined class<<self blockAkshay Vishnoi2013-11-151-6/+6
|
* load active_support/core_ext/module/delegation in active_support/railsXavier Noria2012-08-021-1/+0
|
* AS::Callbacks: deprecate rescuable optionBogdan Gusiev2012-02-221-3/+9
|
* removed deprecated methods, and related tests, from ActionPackJosh Kalderimis2011-05-241-2/+1
|
* Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵John Firebaugh2011-01-311-1/+1
| | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Don't deprecate to_prepare.José Valim2010-12-231-4/+4
|
* Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-25/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove method if exists, avoid calling Array#first so many times.Emilio Tagua2010-09-281-3/+5
|
* Clear DescendantsTracker on each request.José Valim2010-06-191-4/+4
|
* Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure ↵José Valim2010-02-191-1/+1
| | | | after_initializer is executed after to_prepare callbacks.
* Extract routes reloading responsibilities from application and load them ↵José Valim2010-01-231-1/+1
| | | | just upon a request.
* Add ActionDispatch::Notifications middleware.José Valim2010-01-171-2/+0
|
* Ensure log is flushed and tailed on failures.José Valim2010-01-151-4/+3
|
* Move Dispatcher setup to Railties and add instrumentation hook.José Valim2010-01-151-7/+10
|
* Callbacks, DeprecatedCallbacks = NewCallbacks, CallbacksJoshua Peek2009-10-121-1/+1
|
* Use "run_callbacks :foo" since it is the public api for callbacks [#3329Joshua Peek2009-10-121-3/+3
| | | | state:resolved]
* Fixes Sam Ruby tests suite.José Valim2009-09-211-6/+1
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Use NewCallbacks on ActionDispatch::Callbacks.José Valim2009-09-201-23/+38
|
* Extract generic callbacks middleware from dispatcherJoshua Peek2009-05-171-0/+40