Expose revisions on GraphQL API
This commit is contained in:
parent
3b89d04098
commit
91bc2db594
6 changed files with 99 additions and 19 deletions
|
@ -140,7 +140,7 @@ class Procedure < ApplicationRecord
|
|||
}
|
||||
|
||||
scope :for_api_v2, -> {
|
||||
includes(administrateurs: :user)
|
||||
includes(:draft_revision, :published_revision, administrateurs: :user)
|
||||
}
|
||||
|
||||
validates :libelle, presence: true, allow_blank: false, allow_nil: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue