aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-04 13:09:05 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-04 13:15:59 -0800
commit54b4e8e8d6a6bb5b8a27f2e9a6dbbc1a47fea4a0 (patch)
tree5aae3398608d420f20fb8b1ac792feb3aaa29d94 /activemodel/lib
parentb899b7be51271b0a6fddd9d95e1a58d782949565 (diff)
downloadrails-54b4e8e8d6a6bb5b8a27f2e9a6dbbc1a47fea4a0.tar.gz
rails-54b4e8e8d6a6bb5b8a27f2e9a6dbbc1a47fea4a0.tar.bz2
rails-54b4e8e8d6a6bb5b8a27f2e9a6dbbc1a47fea4a0.zip
just implement the delegate method
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/mass_assignment_security/sanitizer.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb b/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
index bbdddfb50d..caf2a25573 100644
--- a/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
+++ b/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
@@ -1,5 +1,3 @@
-require 'active_support/core_ext/module/delegation'
-
module ActiveModel
module MassAssignmentSecurity
class Sanitizer
@@ -26,13 +24,15 @@ module ActiveModel
end
class LoggerSanitizer < Sanitizer
- delegate :logger, :to => :@target
-
def initialize(target)
@target = target
super
end
+ def logger
+ @target.logger
+ end
+
def logger?
@target.respond_to?(:logger) && @target.logger
end