From 8bef78420992d14345c53e397b0c2d99c8ebf2c5 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 3 Nov 2015 15:16:26 -0500 Subject: [PATCH] Order leader skills alphabetically --- app/models/leader_skill.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/leader_skill.rb b/app/models/leader_skill.rb index 07c4d64..50dffb5 100644 --- a/app/models/leader_skill.rb +++ b/app/models/leader_skill.rb @@ -3,4 +3,6 @@ class LeaderSkill < ActiveRecord::Base validates :description, presence: true, uniqueness: { case_sensitive: false } + + default_scope { order(:description) } end