smacks-savon 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|