aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/ordered_hash.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-13 20:44:26 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-13 20:44:26 -0700
commit86b02e7bb188a28e9b3c80b6d91af3219321e6fc (patch)
tree88bd3905fac5dea99a4f973a486fa98bd3ebbeb5 /activesupport/lib/active_support/ordered_hash.rb
parent676a00163d384111c8c7dc6cb319943249f83253 (diff)
downloadrails-86b02e7bb188a28e9b3c80b6d91af3219321e6fc.tar.gz
rails-86b02e7bb188a28e9b3c80b6d91af3219321e6fc.tar.bz2
rails-86b02e7bb188a28e9b3c80b6d91af3219321e6fc.zip
use unless instead of if !
Diffstat (limited to 'activesupport/lib/active_support/ordered_hash.rb')
-rw-r--r--activesupport/lib/active_support/ordered_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb
index dfc3f01fa2..7f148dc853 100644
--- a/activesupport/lib/active_support/ordered_hash.rb
+++ b/activesupport/lib/active_support/ordered_hash.rb
@@ -79,7 +79,7 @@ module ActiveSupport
end
def []=(key, value)
- @keys << key if !has_key?(key)
+ @keys << key unless has_key?(key)
super
end