mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Reduce public interface of OrderInvoiceComparator
This commit is contained in:
@@ -22,6 +22,8 @@ class OrderInvoiceComparator
|
||||
different?(current_state_invoice, latest_invoice, invoice_update_selector)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def different?(node1, node2, attributes_selector)
|
||||
simple_values1, presenters1 = attributes_selector.call(node1)
|
||||
simple_values2, presenters2 = attributes_selector.call(node2)
|
||||
@@ -61,8 +63,6 @@ class OrderInvoiceComparator
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def current_state_invoice
|
||||
@current_state_invoice ||= Invoice.new(
|
||||
order: order,
|
||||
|
||||
Reference in New Issue
Block a user