aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/refinery/blog/post.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-09-05 14:32:26 +1200
committerPhilip Arndt <parndt@gmail.com>2012-09-05 14:32:26 +1200
commit8eeb044650e580dc602bcd8e006092b9cf6c363b (patch)
treeb25a185c4e11f32b0686aacae836cfaaf3ee5a75 /app/models/refinery/blog/post.rb
parent800d478aeea37c06db6142fadea6abad150cbdd9 (diff)
parent4cfd5464a0d4dcad5c845b407c9bde56603e9216 (diff)
downloadrefinerycms-blog-8eeb044650e580dc602bcd8e006092b9cf6c363b.tar.gz
refinerycms-blog-8eeb044650e580dc602bcd8e006092b9cf6c363b.tar.bz2
refinerycms-blog-8eeb044650e580dc602bcd8e006092b9cf6c363b.zip
Merge remote-tracking branch 'Nethemba/published_at_author_validation'
Diffstat (limited to 'app/models/refinery/blog/post.rb')
-rw-r--r--app/models/refinery/blog/post.rb1
1 files changed, 1 insertions, 0 deletions
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,