Conceptual architectural change for CLI user app
This commit is contained in:
@@ -156,6 +156,12 @@ module Suppliers
|
||||
head :ok
|
||||
end
|
||||
|
||||
def remove_needs_payment
|
||||
@list = List.find_by_supplier_id_and_id(current_supplier.id, params[:id])
|
||||
@list.remove_needs_payment!
|
||||
head :ok
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def list_params
|
||||
|
||||
@@ -30,12 +30,6 @@ module Suppliers
|
||||
current_supplier.mark_as_closed!
|
||||
head :ok
|
||||
end
|
||||
def remove_needs_payment
|
||||
@list = List.find_by_supplier_id_and_id(current_supplier.id, params[:id])
|
||||
@list.remove_needs_payment!
|
||||
head :ok
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
|
||||
Reference in New Issue
Block a user