comparison 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
comparison
equal deleted inserted replaced
266:c3080316b4dd 267:0bf1d6f75baa
4 before_validation :convert_newlines 4 before_validation :convert_newlines
5 before_validation :set_paste_hash 5 before_validation :set_paste_hash
6 before_validation :set_paste_key 6 before_validation :set_paste_key
7 before_validation :set_paste_secret 7 before_validation :set_paste_secret
8 validates :paste, :paste_hash, :key, :ip, :presence => true 8 validates :paste, :paste_hash, :key, :ip, :presence => true
9 validates :paste, :length => { :maximum => 1 } 9 validates :paste, :length => { :maximum => 1_000_000 }
10 10
11 def to_param 11 def to_param
12 path 12 path
13 end 13 end
14 14