Commit e9212b0aa2de2a02e6c7b685f3cb5d7f9d3841f0
Exists in
master
and in
4 other branches
Merge pull request #2141 from NARKOZ/notes-text-limit
remove length limit from notes
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
app/models/note.rb
... | ... | @@ -32,11 +32,10 @@ class Note < ActiveRecord::Base |
32 | 32 | delegate :name, to: :project, prefix: true |
33 | 33 | delegate :name, :email, to: :author, prefix: true |
34 | 34 | |
35 | - validates :project, presence: true | |
36 | - validates :note, presence: true, length: { within: 0..5000 } | |
35 | + validates :note, :project, presence: true | |
37 | 36 | validates :attachment, file_size: { maximum: 10.megabytes.to_i } |
38 | 37 | |
39 | - mount_uploader :attachment, AttachmentUploader | |
38 | + mount_uploader :attachment, AttachmentUploader | |
40 | 39 | |
41 | 40 | # Scopes |
42 | 41 | scope :common, ->{ where(noteable_id: nil) } | ... | ... |