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

fix attributes to work with private methods

This commit is contained in:
geemus 2010-10-28 13:13:51 -07:00
parent f9eafff835
commit defbbecddc

View file

@ -140,10 +140,10 @@ module Fog
unless self.class.ignored_attributes.include?(key)
if aliased_key = self.class.aliases[key]
send("#{aliased_key}=", value)
elsif respond_to?("#{key}=")
elsif (methods | private_methods ).include?("#{key}=")
send("#{key}=", value)
else
attributes.merge!(key => value)
attributes[key] = value
end
end
end