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:
parent
3b59607a14
commit
ff2af54c28
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue