Skip to content

Commit

Permalink
Merge pull request #965 from PlanoramaEvents/PLAN-932-survey-sort-ord…
Browse files Browse the repository at this point in the history
…er-bug

latest ranked gem does not like the scope
  • Loading branch information
Gailbear authored Feb 25, 2024
2 parents aec128d + 7ed860e commit fde6294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/survey/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Survey::Question < ApplicationRecord

has_paper_trail versions: { class_name: 'Audit::SurveyVersion' }, ignore: [:updated_at, :created_at, :lock_version, :sort_order]

default_scope {includes(:page).order(['survey_pages.sort_order asc', 'survey_questions.sort_order asc'])}
# default_scope {includes(:page).order(['survey_pages.sort_order asc', 'survey_questions.sort_order asc'])}

belongs_to :page,
class_name: 'Survey::Page',
Expand Down

0 comments on commit fde6294

Please sign in to comment.