diff --git a/app/models/plan.rb b/app/models/plan.rb index 434cbbe..d25635a 100644 --- a/app/models/plan.rb +++ b/app/models/plan.rb @@ -84,7 +84,7 @@ has_many :guidances, through: :themes - has_many :guidance_group_options, -> { GuidanceGroup.published }, + has_many :guidance_group_options, -> { uniq.published.reorder('id') }, through: :guidances, source: :guidance_group, class_name: "GuidanceGroup"