mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
more universal attribute handling
This commit is contained in:
parent
c8821907bb
commit
5fddabd891
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ module Fog
|
||||||
unless self.class.ignored_attributes.include?(key)
|
unless self.class.ignored_attributes.include?(key)
|
||||||
if aliased_key = self.class.aliases[key]
|
if aliased_key = self.class.aliases[key]
|
||||||
send("#{aliased_key}=", value)
|
send("#{aliased_key}=", value)
|
||||||
elsif (self.class.attributes | [:collection, :connection]).include?(key.to_sym)
|
elsif respond_to?("#{key}=")
|
||||||
send("#{key}=", value)
|
send("#{key}=", value)
|
||||||
else
|
else
|
||||||
attributes.merge!(key => value)
|
attributes.merge!(key => value)
|
||||||
|
|
Loading…
Reference in a new issue