comparison app/models/.svn/text-base/role.rb.svn-base @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 513646585e45
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
41 attr_protected :builtin 41 attr_protected :builtin
42 42
43 validates_presence_of :name 43 validates_presence_of :name
44 validates_uniqueness_of :name 44 validates_uniqueness_of :name
45 validates_length_of :name, :maximum => 30 45 validates_length_of :name, :maximum => 30
46 validates_format_of :name, :with => /^[\w\s\'\-]*$/i
47 46
48 def permissions 47 def permissions
49 read_attribute(:permissions) || [] 48 read_attribute(:permissions) || []
50 end 49 end
51 50