lib/gotransverse-tract-api.rb in gotransverse-tract-api-0.2.0 vs lib/gotransverse-tract-api.rb in gotransverse-tract-api-0.2.1
- old
+ new
@@ -213,10 +213,10 @@
klass = klass.to_s.split("::").last
hsh = Hash.from_xml(xml_response.to_s)
hsh = hsh[klass.pluralize.camelize(:lower)][klass.camelize(:lower)] rescue Hash.from_xml(xml_response.to_s)[klass.camelize(:lower)]
- return hsh
+ hsh.symbolize_keys
end
#
# self.camelize_keys
#