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

Merge pull request #557 from gnufied/master

Cleanup Attributes#merge_attributes
This commit is contained in:
Wesley Beary 2011-10-11 17:29:56 -07:00
commit a7829fe856

View file

@ -142,7 +142,7 @@ module Fog
unless self.class.ignored_attributes.include?(key)
if aliased_key = self.class.aliases[key]
send("#{aliased_key}=", value)
elsif (public_methods | private_methods).detect {|method| ["#{key}=", :"#{key}="].include?(method)}
elsif self.respond_to?("#{key}=",true)
send("#{key}=", value)
else
attributes[key] = value