Skip to content
Snippets Groups Projects
Commit 24e17259 authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

remove length limit from notes

parent c177593e
No related branches found
No related tags found
1 merge request!2141remove length limit from notes
Loading
Loading
@@ -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) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment