Class: Auctify::Api::V1::Console::BidsController

Inherits:
BaseController show all
Defined in:
app/controllers/auctify/api/v1/console/bids_controller.rb

Overview

Folio::Console::Api::BaseController

Instance Method Summary collapse

Instance Method Details

#destroyObject



11
12
13
14
15
16
17
18
19
# File 'app/controllers/auctify/api/v1/console/bids_controller.rb', line 11

def destroy
  auction = @bid.auction

  if @bid.cancel!
    render_list(auction.reload)
  else
    render_invalid(@bid)
  end
end