summaryrefslogtreecommitdiffstats
path: root/app/models/tracker.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 21:18:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 21:18:43 +0000
commitfa688d48e673abfa8711beb69995aaf3d41069d1 (patch)
treeb86c5494839673b615cb2d99aac8a861067fd10d /app/models/tracker.rb
parent671a0fa10161ead2ec0fef888710cf7d872b2f61 (diff)
downloadredmine-fa688d48e673abfa8711beb69995aaf3d41069d1.tar.gz
redmine-fa688d48e673abfa8711beb69995aaf3d41069d1.zip
added the ability to set the sort order for trackers
git-svn-id: http://redmine.rubyforge.org/svn/trunk@209 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/tracker.rb')
-rw-r--r--app/models/tracker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/tracker.rb b/app/models/tracker.rb
index 8790bf725..b584704c2 100644
--- a/app/models/tracker.rb
+++ b/app/models/tracker.rb
@@ -20,6 +20,7 @@ class Tracker < ActiveRecord::Base
has_many :issues
has_many :workflows, :dependent => :delete_all
has_and_belongs_to_many :custom_fields, :class_name => 'IssueCustomField', :join_table => 'custom_fields_trackers', :association_foreign_key => 'custom_field_id'
+ acts_as_list
validates_presence_of :name
validates_uniqueness_of :name