comparison app/models/paste.rb @ 197:af80541dc915

attr_accesible is no longer needed. Never needed to begin with anyway because of how it's used in the controller.
author Edho Arief <edho@myconan.net>
date Wed, 08 May 2013 00:03:01 +0900
parents a9dba6a3008b
children d59731c3c7bf
comparison
equal deleted inserted replaced
196:8d465a93fcb4 197:af80541dc915
1 class Paste < ActiveRecord::Base 1 class Paste < ActiveRecord::Base
2 attr_accessible :paste
3 before_validation :paste_limit 2 before_validation :paste_limit
4 before_validation :convert_newlines 3 before_validation :convert_newlines
5 before_validation :set_paste_hash 4 before_validation :set_paste_hash
6 before_validation :set_paste_key 5 before_validation :set_paste_key
7 validates :paste, :paste_hash, :key, :ip, :presence => true 6 validates :paste, :paste_hash, :key, :ip, :presence => true