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