Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Refactored sell_book

View ddd_example2_2.rb
1 2 3 4
def sell_book
@book = Book.find(params[:id])
BookSellingService.sell_book(@book)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.