summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-12-01 03:19:16 -0800
committerNihad Abbasov <narkoz.2008@gmail.com>2012-12-01 03:19:16 -0800
commit24e172597a3e0c1b75e2d96fc8c7f1752f9a6c03 (patch)
tree7d834c26ba48eb21415dd7dfcd045731c2758ac1 /app/models/note.rb
parentc177593e2cf282f09934640bd597e6e3c5f32893 (diff)
downloadgitlab-ce-24e172597a3e0c1b75e2d96fc8c7f1752f9a6c03.tar.gz
remove length limit from notes
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 60846e04872..da15a173566 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -32,11 +32,10 @@ class Note < ActiveRecord::Base
delegate :name, to: :project, prefix: true
delegate :name, :email, to: :author, prefix: true
- validates :project, presence: true
- validates :note, presence: true, length: { within: 0..5000 }
+ validates :note, :project, presence: true
validates :attachment, file_size: { maximum: 10.megabytes.to_i }
- mount_uploader :attachment, AttachmentUploader
+ mount_uploader :attachment, AttachmentUploader
# Scopes
scope :common, ->{ where(noteable_id: nil) }