diff --git a/lib/fog/core/attributes.rb b/lib/fog/core/attributes.rb index 065ae4b62..26b74c6d1 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 (methods | private_methods ).include?("#{key}=") + elsif (public_methods | private_methods).detect {|method| ["#{key}=", :"#{key}="].include?(method)} send("#{key}=", value) else attributes[key] = value