Permalink
Browse files

added presence validation for published_at and author

  • Loading branch information...
1 parent 06fe63e commit c9734fb67d60c3440e483ee4293b9a6c65657624 @keram keram committed Aug 20, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/refinery/blog/post.rb
@@ -26,6 +26,7 @@ class Post < ActiveRecord::Base
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,

0 comments on commit c9734fb

Please sign in to comment.