From c9734fb67d60c3440e483ee4293b9a6c65657624 Mon Sep 17 00:00:00 2001 From: Marek Labos Date: Mon, 20 Aug 2012 16:13:41 +0200 Subject: added presence validation for published_at and author --- app/models/refinery/blog/post.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb index 9df7aa3..70c7861 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -26,6 +26,7 @@ module Refinery validates :title, :presence => true, :uniqueness => true validates :body, :presence => true + validates :published_at, :author, :presence => true validates :source_url, :url => { :if => 'Refinery::Blog.validate_source_url', :update => true, -- cgit v1.2.3