Skip to content

Commit

Permalink
Add delegate to create supply
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmp07 committed Oct 20, 2021
1 parent 0280c12 commit 7155961
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/inmana.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
defmodule Inmana do
alias Inmana.Restaurants.Create
alias Inmana.Restaurants.Create, as: RestaurantCreate
alias Inmana.Supplies.Create, as: SupplyCreate

defdelegate create_restaurant(params), to: Create, as: :call
defdelegate create_restaurant(params), to: RestaurantCreate, as: :call

defdelegate create_supply(params), to: SupplyCreate, as: :call
end

0 comments on commit 7155961

Please sign in to comment.