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:
parent
50d6131d03
commit
e25afbd284
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue