1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

use unless instead of if !

This commit is contained in:
Aaron Patterson 2010-10-13 20:44:26 -07:00
parent 676a00163d
commit 86b02e7bb1

View file

@ -79,7 +79,7 @@ module ActiveSupport
end
def []=(key, value)
@keys << key if !has_key?(key)
@keys << key unless has_key?(key)
super
end