lib/braintree/base_module.rb in braintree-1.0.1 vs lib/braintree/base_module.rb in braintree-1.1.0

- old
+ new

@@ -4,24 +4,24 @@ def return_object_or_raise(object_to_return) result = yield if result.success? result.send object_to_return else - raise ValidationsFailed + raise ValidationsFailed.new(result) end end def set_instance_variables_from_hash(hash) hash.each do |key, value| instance_variable_set "@#{key}", value end end - + def singleton_class class << self; self; end end end - + def self.included(klass) klass.extend Methods end include Methods end