mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
Fixes ordering of checklist items in search results [SCI-380]
This commit is contained in:
parent
841e495234
commit
366a49f3a1
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ class Checklist < ActiveRecord::Base
|
||||||
belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User'
|
belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User'
|
||||||
belongs_to :last_modified_by, foreign_key: 'last_modified_by_id', class_name: 'User'
|
belongs_to :last_modified_by, foreign_key: 'last_modified_by_id', class_name: 'User'
|
||||||
has_many :checklist_items,
|
has_many :checklist_items,
|
||||||
|
-> { order(:position) },
|
||||||
inverse_of: :checklist,
|
inverse_of: :checklist,
|
||||||
dependent: :destroy
|
dependent: :destroy
|
||||||
has_many :report_elements,
|
has_many :report_elements,
|
||||||
|
|
Loading…
Reference in a new issue