aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/logger_silence.rb
diff options
context:
space:
mode:
authorGenadi Samokovarov <gsamokovarov@gmail.com>2017-05-31 12:16:20 +0300
committerGenadi Samokovarov <gsamokovarov@gmail.com>2017-06-03 13:52:48 +0300
commitb6b0c99ff3e8ace3f42813154dbe4b8ad6a98e6c (patch)
tree5d2f9250f66f675280c2761daa52880b28d6a86e /activesupport/lib/active_support/logger_silence.rb
parenta5b0c60714e1e8d8c182af830a26e1c7c884271d (diff)
downloadrails-b6b0c99ff3e8ace3f42813154dbe4b8ad6a98e6c.tar.gz
rails-b6b0c99ff3e8ace3f42813154dbe4b8ad6a98e6c.tar.bz2
rails-b6b0c99ff3e8ace3f42813154dbe4b8ad6a98e6c.zip
Use mattr_accessor default: option throughout the project
Diffstat (limited to 'activesupport/lib/active_support/logger_silence.rb')
-rw-r--r--activesupport/lib/active_support/logger_silence.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/logger_silence.rb b/activesupport/lib/active_support/logger_silence.rb
index 632994cf50..9c64afaaca 100644
--- a/activesupport/lib/active_support/logger_silence.rb
+++ b/activesupport/lib/active_support/logger_silence.rb
@@ -6,8 +6,7 @@ module LoggerSilence
extend ActiveSupport::Concern
included do
- cattr_accessor :silencer
- self.silencer = true
+ cattr_accessor :silencer, default: true
end
# Silences the logger for the duration of the block.