@@ -24,7 +24,7 class IssueCategory < ActiveRecord::Base | |||
|
24 | 24 | validates_presence_of :name |
|
25 | 25 | validates_uniqueness_of :name, :scope => [:project_id] |
|
26 | 26 | validates_length_of :name, :maximum => 30 |
|
27 | ||
|
27 | ||
|
28 | 28 | safe_attributes 'name', 'assigned_to_id' |
|
29 | 29 | |
|
30 | 30 | scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)} |
General Comments 0
You need to be logged in to leave comments.
Login now