1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

just send strings rather than casting to symbol

This commit is contained in:
Wesley Beary 2009-09-14 21:36:24 -07:00
parent 52b3199555
commit ea6655838a
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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