Archived
rails 4 and tons of stuff
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Comment < ActiveRecord::Base
|
||||
attr_accessible :content, :author, :blogpost, :post
|
||||
|
||||
|
||||
validates_presence_of :content, :author, :blogpost
|
||||
validates_length_of :content, in: 4..1000
|
||||
|
||||
Reference in New Issue
Block a user