Permalink
Browse files

instead of @target.logger use logger method

  • Loading branch information...
1 parent c3aaaca commit 5af162dd5ccfe05c2e625da4cb20bb96aac2e03d @hindenbug hindenbug committed Jan 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
@@ -31,7 +31,7 @@ def logger
end
def logger?
- @target.respond_to?(:logger) && @target.logger
+ @target.respond_to?(:logger) && logger
end
def process_removed_attributes(attrs)

0 comments on commit 5af162d

Please sign in to comment.