From 671a0fa10161ead2ec0fef888710cf7d872b2f61 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 31 Jan 2007 20:57:01 +0000 Subject: added the ability to set the sort order for roles git-svn-id: http://redmine.rubyforge.org/svn/trunk@208 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/role.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/role.rb') diff --git a/app/models/role.rb b/app/models/role.rb index aea402f46..d00a2b218 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -20,6 +20,7 @@ class Role < ActiveRecord::Base has_and_belongs_to_many :permissions has_many :workflows, :dependent => :delete_all has_many :members + acts_as_list validates_presence_of :name validates_uniqueness_of :name -- cgit v1.2.3