Class: Eboshi::LineItemsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/eboshi/line_items_controller.rb

Instance Method Summary collapse

Methods included from ShallowRouteHelper

#assignment_path, #assignments_path, #convert_work_path, #edit_adjustment_path, #edit_invoice_path, #edit_work_path, #invoice_path, #invoices_path, #line_item_path, #merge_works_path, #new_adjustment_path, #new_assignment_path, #new_invoice_path, #new_payment_path, #payments_path, #work_path

Instance Method Details

#updateObject



6
7
8
9
10
11
# File 'app/controllers/eboshi/line_items_controller.rb', line 6

def update
  if line_item.timestamp < params[:line_item][:timestamp].to_i
    line_item.update(params[:line_item])
  end
  render json: {}, status: :ok
end