diff app/models/paste.rb @ 267:0bf1d6f75baa

Accidentally limited pastes to 0 characters. Yay.
author edogawaconan <me@myconan.net>
date Wed, 16 Oct 2013 02:58:18 +0900
parents 6cca1ab53337
children d68cb68da802
line wrap: on
line diff
--- a/app/models/paste.rb	Wed Oct 16 02:57:51 2013 +0900
+++ b/app/models/paste.rb	Wed Oct 16 02:58:18 2013 +0900
@@ -6,7 +6,7 @@
   before_validation :set_paste_key
   before_validation :set_paste_secret
   validates :paste, :paste_hash, :key, :ip, :presence => true
-  validates :paste, :length => { :maximum => 1 }
+  validates :paste, :length => { :maximum => 1_000_000 }
 
   def to_param
     path