aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-04 13:37:47 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-04 13:37:47 -0800
commitda4fef815592f674252b72cb86cb436a4aae8e28 (patch)
tree9132daedc58d352a41f2fc001a22e9e623d70bbc /activemodel/lib
parent07c192a705001252e563735788c29fe7a90d5447 (diff)
downloadrails-da4fef815592f674252b72cb86cb436a4aae8e28.tar.gz
rails-da4fef815592f674252b72cb86cb436a4aae8e28.tar.bz2
rails-da4fef815592f674252b72cb86cb436a4aae8e28.zip
use logger.warn for warnings
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/mass_assignment_security/sanitizer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb b/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
index ab96e7937f..cfeb4aa7cd 100644
--- a/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
+++ b/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
@@ -35,7 +35,7 @@ module ActiveModel
end
def process_removed_attributes(attrs)
- logger.debug "WARNING: Can't mass-assign protected attributes: #{attrs.join(', ')}" if logger?
+ logger.warn "Can't mass-assign protected attributes: #{attrs.join(', ')}" if logger?
end
end