aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/initializers/notifications_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Log call site for all queriesOlivier Lacan2017-12-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new ActiveRecord configuration option allows you to easily pinpoint what line of application code is triggering SQL queries in the development log by appending below each SQL statement log the line of Ruby code that triggered it. It’s useful with N+1 issues, and to locate stray queries. By default this new option ignores Rails and Ruby code in order to surface only callers from your application Ruby code or your gems. It is enabled on newly generated Rails 5.2 applications and can be enabled on existing Rails applications: ```ruby Rails.application.configure do # ... config.active_record.verbose_query_logs = true end ``` The `rails app:upgrade` task will also add it to `config/development.rb`. This feature purposely avoids coupling with ActiveSupport::BacktraceCleaner since ActiveRecord can be used without ActiveRecord. This decision can be reverted in the future to allow more configurable backtraces (the exclusion of gem callers for example).
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-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
|
* applies new string literal convention in railties/testXavier Noria2016-08-061-4/+4
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Remove unused boot_rails method and it's usagePrathamesh Sonpatki2016-07-041-1/+0
| | | | | - The `boot_rails` method from abstract_unit.rb is empty after 2abcdfd978fdcd491576a237e8c6b. - So let's remove it and its usage.
* Build fix for ruby 1.9.3 syntaxArun Agrawal2013-11-161-1/+1
|
* Instrument each load config initializerPaul Nikitochkin2013-11-161-0/+13
| | | | | | In order to simplify profiling loading of initializers, added instument for tracking load config initializer event from `config/initializers`
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-1/+1
|
* convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-061-0/+4
|
* Parenthesize arguments when the first one is a Regexp literal.Sebastian Martinez2011-05-231-1/+1
| | | | This fixes 'warning: ambiguous first argument; put parentheses or even spaces'.
* Fix a failing test in Railtie and properly define all severity levels in ↵José Valim2010-07-201-14/+5
| | | | MockLogger for LogSubscriber.
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
| | | | not "ActiveRecord"
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-1/+1
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-1/+1
|
* Refactor railties test, break huge files in smaller chunks and move ↵José Valim2010-01-261-0/+48
initializers to application folder.