From 5fddabd891cb3c3467f686d68b8d543cb95d1026 Mon Sep 17 00:00:00 2001 From: geemus Date: Thu, 28 Oct 2010 10:55:35 -0700 Subject: [PATCH] more universal attribute handling --- lib/fog/core/attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/core/attributes.rb b/lib/fog/core/attributes.rb index 3fad88d3a..5f0ff5ea7 100644 --- a/lib/fog/core/attributes.rb +++ b/lib/fog/core/attributes.rb @@ -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 (self.class.attributes | [:collection, :connection]).include?(key.to_sym) + elsif respond_to?("#{key}=") send("#{key}=", value) else attributes.merge!(key => value)