Permalink
Browse files

Better formatting for logger messages when an attribute is disallowed.

  • Loading branch information...
nilbus committed Aug 10, 2010
1 parent 80cfb49 commit 287096187d24aaebf3592552326543f4799adbc3
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mass_assignment_fu.rb
@@ -153,7 +153,7 @@ def updatable_attributes(assigned_attributes, safe_attributes, explicitly_allowe
kept_attributes.store(key, value)
end
else
- Rails.logger.debug "not updating #{key}; not in allowed set of attributes: #{safe_attributes.keys}"
+ Rails.logger.debug "not updating #{key}; not in allowed set of attributes: #{safe_attributes.keys.inspect}"
end
end
return kept_attributes

0 comments on commit 2870961

Please sign in to comment.