aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/backtrace_cleaner.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add `Style/RedundantFreeze` to remove redudant `.freeze`Yasuo Honda2018-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | Since Rails 6.0 will support Ruby 2.4.1 or higher `# frozen_string_literal: true` magic comment is enough to make string object frozen. This magic comment is enabled by `Style/FrozenStringLiteralComment` cop. * Exclude these files not to auto correct false positive `Regexp#freeze` - 'actionpack/lib/action_dispatch/journey/router/utils.rb' - 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb' It has been fixed by https://github.com/rubocop-hq/rubocop/pull/6333 Once the newer version of RuboCop released and available at Code Climate these exclude entries should be removed. * Replace `String#freeze` with `String#-@` manually if explicit frozen string objects are required - 'actionpack/test/controller/test_case_test.rb' - 'activemodel/test/cases/type/string_test.rb' - 'activesupport/lib/active_support/core_ext/string/strip.rb' - 'activesupport/test/core_ext/string_ext_test.rb' - 'railties/test/generators/actions_test.rb'
* Use backtrace cleaner to clean up backtrace for verbose query logsLachlan Sylvester2018-08-141-0/+23
|
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* 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
|
* Add module name to BacktraceCleaner usage example [ci skip]kenta-s2017-01-221-1/+1
|
* Remove the word "mongrel" from documentsRyunosuke Sato2016-09-071-3/+3
| | | | | | | | | Currently mongrel is not maintained. And it couldn't be built with any Ruby versions that supported by Rails. It is reasonable to remove the word "mongrel" in order to avoid confusion from newcomer.
* Fix `thoughtbot` capitalizationTeo Ljungberg2015-06-051-1/+1
| | | | | The company name is spelled `thoughtbot` per https://github.com/thoughtbot/presskit/blob/master/README.md#name
* docs, fix BacktraceCleaner code example. Closes #15911. [ci skip]Yves Senn2014-06-251-1/+1
|
* Keep method's description/documentation consistent [ci skip]Santosh Wadghule2014-05-111-3/+3
|
* Some assorted fixes for the 4.1 release notes:Godfrey Chan2013-12-171-1/+1
| | | | | | | | | | | * Added release notes for secrets.yml and mentioned it in the highlights * Added release notes for Mailer previews and mentioned it in the highlights * Added release notes for Module#concerning * Removed mention for AV extraction from the highlights * Rearranged the major features to put highlighted features first * Various improvements and typo fixes [ci skip]
* Fix BacktraceCleaner#noise for multiple silencers.Mark J. Titorenko2013-06-201-5/+1
| | | | | | | | | | | | | | The previous implementation of BacktraceSilencer#noise did not work correctly if more than one silencer was configured -- specifically, it would only return noise which was matched by all silencers. The new implementation is such that anything that has been matched by silencers is removed from the backtrace using Array#- (array difference), ie. we now return all elements within a backtrace that have been matched by any silencer (and are thus removed by #silence). Fixes #11030.
* minor doc changes to `ActiveSupport::BacktraceCleaner`.Yves Senn2013-06-121-5/+5
|
* Add documentation for BacktraceCleaner#remove_filters!Matthew Stopa2013-01-021-0/+3
|
* rename private method to avoid overridingFrancesco Rodriguez2012-10-061-2/+2
|
* use Rails backtrace in testsFrancesco Rodriguez2012-10-051-0/+1
|
* update AS docs [ci skip]Francesco Rodriguez2012-09-171-17/+27
|
* removing unnecessary 'examples' noise from activesupportFrancesco Rodriguez2012-05-131-6/+0
|
* Whitespaces :scissors:Rafael Mendonça França2012-01-061-7/+7
|
* move example code to be above reconfiguring discussion; add clarity about ↵Matt Jankowski2011-06-221-11/+16
| | | | silencers and filters; misc grammar changes - for backtrace cleaners
* Some style changessuchasurge2011-03-061-1/+1
|
* ActiveSupport::BacktraceCleaner#remove_filters! allows for completely ↵Doug Alcorn2010-04-101-1/+7
| | | | | | untouched backtrace [#4079 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Use backtrace cleaner for dev mode exception pageJoshua Peek2010-01-161-8/+24
|
* Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for ↵David Heinemeier Hansson2008-11-221-0/+72
cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]