1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] fixes attributes memoization

This commit is contained in:
geemus 2010-11-17 17:25:47 -08:00
parent 50d6131d03
commit e25afbd284

View file

@ -139,8 +139,10 @@ module Fog
for key, value in new_attributes
unless self.class.ignored_attributes.include?(key)
if aliased_key = self.class.aliases[key]
attributes[aliased_key] = value
send("#{aliased_key}=", value)
elsif (public_methods | private_methods).detect {|method| ["#{key}=", :"#{key}="].include?(method)}
attributes[key] = value
send("#{key}=", value)
else
attributes[key] = value