diff options
author | Marek Labos <keraml@gmail.com> | 2012-08-20 16:13:41 +0200 |
---|---|---|
committer | Marek Labos <keraml@gmail.com> | 2012-08-20 16:13:41 +0200 |
commit | c9734fb67d60c3440e483ee4293b9a6c65657624 (patch) | |
tree | 7b36beb9ecd2fea9ae4f57d9686902241d6a18d6 /app/models/refinery | |
parent | 06fe63e5f02dc98c0573d497cad145538db97bf2 (diff) | |
download | refinerycms-blog-c9734fb67d60c3440e483ee4293b9a6c65657624.tar.gz refinerycms-blog-c9734fb67d60c3440e483ee4293b9a6c65657624.tar.bz2 refinerycms-blog-c9734fb67d60c3440e483ee4293b9a6c65657624.zip |
added presence validation for published_at and author
Diffstat (limited to 'app/models/refinery')
-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, |