attributes should compare against the symbol key, rather than string

This commit is contained in:
geemus 2010-10-28 10:49:27 -07:00
parent 3c8e45ec15
commit c8821907bb
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ module Fog
unless self.class.ignored_attributes.include?(key)
if aliased_key = self.class.aliases[key]
send("#{aliased_key}=", value)
elsif (self.class.attributes | [:collection, :connection]).include?(key)
elsif (self.class.attributes | [:collection, :connection]).include?(key.to_sym)
send("#{key}=", value)
else
attributes.merge!(key => value)