Skip to content

Commit

Permalink
Merge pull request fog#557 from gnufied/master
Browse files Browse the repository at this point in the history
Cleanup Attributes#merge_attributes
  • Loading branch information
geemus committed Oct 12, 2011
2 parents 3f00d86 + 112c956 commit a7829fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/core/attributes.rb
Expand Up @@ -142,7 +142,7 @@ def merge_attributes(new_attributes = {})
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
Expand Down

0 comments on commit a7829fe

Please sign in to comment.