diff options
author | Philip Arndt <parndt@gmail.com> | 2012-09-05 14:32:26 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-09-05 14:32:26 +1200 |
commit | 8eeb044650e580dc602bcd8e006092b9cf6c363b (patch) | |
tree | b25a185c4e11f32b0686aacae836cfaaf3ee5a75 /app | |
parent | 800d478aeea37c06db6142fadea6abad150cbdd9 (diff) | |
parent | 4cfd5464a0d4dcad5c845b407c9bde56603e9216 (diff) | |
download | refinerycms-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')
-rw-r--r-- | app/models/refinery/blog/post.rb | 1 |
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, |