diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-07-16 17:16:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-07-16 17:16:49 +0000 |
commit | fcefdb22bfc3a270e213e289c562bea0bd8722ef (patch) | |
tree | 17b14373e732950cc918883df746e89a33d1373d /app/models/document.rb | |
parent | 7363428703e4a86c3c7b20e5adc00e9ae9428b2e (diff) | |
download | redmine-fcefdb22bfc3a270e213e289c562bea0bd8722ef.tar.gz redmine-fcefdb22bfc3a270e213e289c562bea0bd8722ef.zip |
Added several validates_length_of
git-svn-id: http://redmine.rubyforge.org/svn/trunk@593 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/document.rb')
-rw-r--r-- | app/models/document.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/document.rb b/app/models/document.rb index 141489a79..8b5d68e87 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -21,4 +21,5 @@ class Document < ActiveRecord::Base has_many :attachments, :as => :container, :dependent => :destroy validates_presence_of :project, :title, :category + validates_length_of :title, :maximum => 60 end |