note as text

This commit is contained in:
gitlabhq 2011-10-27 17:33:20 +03:00
parent 5fe736ab28
commit 9611a27e0c
4 changed files with 12 additions and 4 deletions

View file

@ -13,7 +13,7 @@ class Note < ActiveRecord::Base
validates :note,
:presence => true,
:length => { :within => 0..255 }
:length => { :within => 0..5000 }
validates :attachment,
:file_size => {

View file

@ -10,7 +10,7 @@
%div
= f.label :note
%cite (255 symbols only)
%cite
%br
= f.text_area :note, :size => 255