Mercurial > zeropaste
changeset 267:0bf1d6f75baa
Accidentally limited pastes to 0 characters.
Yay.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 16 Oct 2013 02:58:18 +0900 |
parents | c3080316b4dd |
children | 7f1eac4a7fa9 |
files | app/models/paste.rb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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