smacks-savon 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/savon/response.rb +1 -1
- metadata +1 -1
data/lib/savon/response.rb
CHANGED
@@ -153,7 +153,7 @@ module Savon
|
|
153
153
|
# case a matching public method and a key from the Hash could be found.
|
154
154
|
def shadow_core_methods
|
155
155
|
@@core_methods_to_shadow.each do |method|
|
156
|
-
if self.public_methods.include?(method.to_s) && value_from_hash(method)
|
156
|
+
if self.public_methods.include?(method.to_s) && @hash.kind_of?(Hash) && value_from_hash(method)
|
157
157
|
self.class.send(:define_method, method) { value_from_hash(method) }
|
158
158
|
end
|
159
159
|
end
|