Skip to content

instead of @target.logger use logger method #4600

Closed
wants to merge 1 commit into from
View
2 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)
Something went wrong with that request. Please try again.