From ea6655838aacd881dee3a39f6cf2ea22281add22 Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Mon, 14 Sep 2009 21:36:24 -0700 Subject: [PATCH] just send strings rather than casting to symbol --- lib/fog/collection.rb | 6 +++--- lib/fog/model.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/fog/collection.rb b/lib/fog/collection.rb index fb9816a2b..130fcc938 100644 --- a/lib/fog/collection.rb +++ b/lib/fog/collection.rb @@ -39,7 +39,7 @@ module Fog def attributes attributes = {} for attribute in self.class.attributes - attributes[attribute] = send(:"#{attribute}") + attributes[attribute] = send("#{attribute}") end attributes end @@ -47,9 +47,9 @@ module Fog def merge_attributes(new_attributes = {}) for key, value in new_attributes if aliased_key = self.class.aliases[key] - send(:"#{aliased_key}=", value) + send("#{aliased_key}=", value) else - send(:"#{key}=", value) + send("#{key}=", value) end end self diff --git a/lib/fog/model.rb b/lib/fog/model.rb index e3a2787d7..f95c0feee 100644 --- a/lib/fog/model.rb +++ b/lib/fog/model.rb @@ -34,7 +34,7 @@ module Fog def attributes attributes = {} for attribute in self.class.attributes - attributes[attribute] = send(:"#{attribute}") + attributes[attribute] = send("#{attribute}") end attributes end @@ -42,9 +42,9 @@ module Fog def merge_attributes(new_attributes = {}) for key, value in new_attributes if aliased_key = self.class.aliases[key] - send(:"#{aliased_key}=", value) + send("#{aliased_key}=", value) else - send(:"#{key}=", value) + send("#{key}=", value) end end self