attributes should compare against the symbol key, rather than string
This commit is contained in:
parent
3c8e45ec15
commit
c8821907bb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue