RUBYCRITIC
class DealProduct::Destroy - DealProduct::Destroy has no descriptive comment
def initialize(deal_product)
@deal_product = deal_product
end
def call
ActiveRecord::Base.transaction do
@deal_product.destroy!
Deal::RecalculateAndSaveAllMonetaryValues.new(@deal_product.deal).call
end
@deal_product
end
end