Commit 69ec189ad25000caa247aad944eda2398045b612

Authored by Valeriy Sizov
1 parent f70f7d07

remove length of snippet content

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/snippet.rb
... ... @@ -28,7 +28,7 @@ class Snippet < ActiveRecord::Base
28 28 validates :project, presence: true
29 29 validates :title, presence: true, length: { within: 0..255 }
30 30 validates :file_name, presence: true, length: { within: 0..255 }
31   - validates :content, presence: true, length: { within: 0..10000 }
  31 + validates :content, presence: true
32 32  
33 33 # Scopes
34 34 scope :fresh, order("created_at DESC")
... ...