aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties/controller_runtime.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-171-35/+30
|
* [Active Record] require => require_relativeAkira Matsuda2017-10-211-1/+1
| | | | This basically reverts 9d4f79d3d394edb74fa2192e5d9ad7b09ce50c6d
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|
* [Active Record] require => require_relativeAkira Matsuda2017-07-011-1/+1
|
* Privatize unneededly protected methods in Active RecordAkira Matsuda2016-12-241-0/+2
|
* Describe what we are protectingAkira Matsuda2016-12-231-0/+2
|
* applies new string literal convention in activerecord/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.
* Check if the logger exists before trying to use itRafael Mendonça França2016-07-171-1/+1
|
* Don't invoke sql_runtime if logger is not set to infoeileencodes2015-04-041-1/+1
| | | | | | | | | `sql_runtime` was getting invoked even when the logger was set to fatal. This ensures that does not happen by checking that the logger is set to info level before logging the view runtime. This reduces the number of times `sql_runtime` is called for integration tests with a fatal logger from 6 to 2.
* fix db_runtime attribute value after raising ActionView::MissingTemplate ↵Igor2013-02-271-1/+2
| | | | exception
* nodoc AR::Railtie [ci skip]Francesco Rodriguez2012-09-211-2/+2
|
* Take into account time spent in AR even if a redirect occurs or if it is ↵Frederick Cheung2011-05-231-1/+3
| | | | after the render
* Add missing requireSantiago Pastorino2011-05-171-0/+1
|
* Added some docs to controller runtime.José Valim2011-05-141-1/+4
|
* Reset ActiveRecord::LogSubscriber runtime at the start of each requestTom Ward2011-05-141-0/+5
| | | | Previously the runtime was reset implicitly when #cleanup_view_runtime was called at the end of most requests. However, this doesn't happen when the request redirects, or send_file is called. Consequently, the ActiveRecord runtime recorded in the logs included the time taken for both the current request and the previous redirect. Explicitly resetting at the start of each request ensures that this can't happen, no matter what occurs previously.
* Move runtime back to the Thread.currentJosé Valim2010-07-261-3/+2
|
* Cache connection access.José Valim2010-07-251-2/+3
|
* Move runtime back to connection.José Valim2010-07-251-2/+2
|
* Revert the previous three commits.José Valim2010-07-251-3/+2
| | | | | | * AS::Notifications#instrument should not measure anything, it is not its responsibility; * Adding another argument to AS::Notifications#instrument API needs to be properly discussed;
* look up connection onceAaron Patterson2010-07-251-2/+3
|
* use a hash to collect optional statistics about the instrumentationAaron Patterson2010-07-251-2/+2
|
* Move runtime to log subscriber.José Valim2010-07-251-2/+2
|
* Do not send the whole controller in notifications, cherry pick required pieces.José Valim2010-01-151-2/+9
|
* Tidy up ActiveRecord and Views runtime information on process action logger.José Valim2010-01-141-3/+3
|
* Fix up AR extension by using Railties module instead of Rails and requiring ↵Jeremy Kemper2009-12-301-0/+31
ControllerRuntime at initialization time instead of boot