Merge pull request #179 from okriuchykhin/ok_SCI-380

Fixes ordering of checklist items in search results [SCI-380]
This commit is contained in:
Luka Murn 2016-09-30 08:28:07 +02:00 committed by GitHub
commit f70829d1a9

View file

@ -9,6 +9,7 @@ class Checklist < ActiveRecord::Base
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'
has_many :checklist_items,
-> { order(:position) },
inverse_of: :checklist,
dependent: :destroy
has_many :report_elements,