public
Created

Refactored sell_book

  • Download Gist
ddd_example2_2.rb
Ruby
1 2 3 4
def sell_book
@book = Book.find(params[:id])
BookSellingService.sell_book(@book)
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.