##// END OF EJS Templates
remove trailing white-space from app/models/issue_category.rb...
Toshi MARUYAMA -
r10714:ee7685670d29
parent child
Show More
@@ -24,7 +24,7 class IssueCategory < ActiveRecord::Base
24 validates_presence_of :name
24 validates_presence_of :name
25 validates_uniqueness_of :name, :scope => [:project_id]
25 validates_uniqueness_of :name, :scope => [:project_id]
26 validates_length_of :name, :maximum => 30
26 validates_length_of :name, :maximum => 30
27
27
28 safe_attributes 'name', 'assigned_to_id'
28 safe_attributes 'name', 'assigned_to_id'
29
29
30 scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)}
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