diff options
author | Jerry Cheung <jch@whatcodecraves.com> | 2013-02-11 16:44:17 -0800 |
---|---|---|
committer | Jerry Cheung <jch@whatcodecraves.com> | 2013-02-11 16:44:17 -0800 |
commit | 142161bcd16c356cf73c3fb7b929f61a5c5adf67 (patch) | |
tree | 15ace5a20ea354738b398e786249305bd79f2151 | |
parent | 743b44c50a56e73040eec485b73f2368e64974a1 (diff) | |
download | hashie-142161bcd16c356cf73c3fb7b929f61a5c5adf67.tar.gz |
fix spacing, add comment to Trash#initialize_attributes
-rw-r--r-- | lib/hashie/trash.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/hashie/trash.rb b/lib/hashie/trash.rb index ca7be06..f1c476f 100644 --- a/lib/hashie/trash.rb +++ b/lib/hashie/trash.rb @@ -76,11 +76,12 @@ module Hashie private + # Deletes any keys that have a translation def initialize_attributes(attributes) return unless attributes - attributes_copy=attributes.dup.delete_if do |k,v| + attributes_copy = attributes.dup.delete_if do |k,v| if self.class.translations.include?(k.to_sym) - self[k]=v + self[k] = v true end end |