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

fix for the backwards compat stuff to work with ruby 1.9+

This commit is contained in:
geemus 2010-11-03 17:32:06 -07:00
parent 3b59607a14
commit ff2af54c28

View file

@ -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 (methods | private_methods ).include?("#{key}=")
elsif (public_methods | private_methods).detect {|method| ["#{key}=", :"#{key}="].include?(method)}
send("#{key}=", value)
else
attributes[key] = value