lib/active_merchant/billing/compatibility.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/compatibility.rb in activemerchant-1.87.0

- old
+ new

@@ -59,11 +59,11 @@ @errors ||= Errors.new end class Errors < Hash def initialize - super(){|h, k| h[k] = []} + super() { |h, k| h[k] = [] } end alias count size def [](key) @@ -73,11 +73,11 @@ def []=(key, value) super(key.to_s, value) end def empty? - all?{|k, v| v&.empty?} + all? { |k, v| v&.empty? } end def on(field) self[field].to_a.first end @@ -89,10 +89,10 @@ def add_to_base(error) add(:base, error) end def each_full - full_messages.each{|msg| yield msg} + full_messages.each { |msg| yield msg } end def full_messages result = []