sanger/sequencescape

View on GitHub
app/api/endpoints/orders.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
class Endpoints::Orders < Core::Endpoint::Base
  model {}

  instance do
    belongs_to(:project, json: 'project')
    belongs_to(:study, json: 'study')
    belongs_to(:user, json: 'user')

    action(:update, to: :standard_update!, if: :building?)
  end
end