lib/pagseguro/notification.rb in pagseguro-0.1.4 vs lib/pagseguro/notification.rb in pagseguro-0.1.5

- old
+ new

@@ -128,9 +128,14 @@ def method_missing(method, *args) return mapping_for(method) if MAPPING[method] super end + def respond_to?(method, include_private = false) + return true if MAPPING[method] + super + end + # A wrapper to the params hash, # sanitizing the return to symbols def mapping_for(name) params[MAPPING[name]] end