summaryrefslogtreecommitdiffstats
path: root/app/models/role.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 20:57:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 20:57:01 +0000
commit671a0fa10161ead2ec0fef888710cf7d872b2f61 (patch)
treef7b9068afbc1d1e360106b9584cd88aa89f10ab1 /app/models/role.rb
parent99f006f2c959ce9d1e5136e950ca448cc92ec7c9 (diff)
downloadredmine-671a0fa10161ead2ec0fef888710cf7d872b2f61.tar.gz
redmine-671a0fa10161ead2ec0fef888710cf7d872b2f61.zip
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
Diffstat (limited to 'app/models/role.rb')
-rw-r--r--app/models/role.rb1
1 files changed, 1 insertions, 0 deletions
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