diff --git a/app/models/indexed_post.rb b/app/models/indexed_post.rb index 02679ec0..992c07c8 100644 --- a/app/models/indexed_post.rb +++ b/app/models/indexed_post.rb @@ -48,6 +48,8 @@ class IndexedPost < ApplicationRecord .flatten.uniq end + validates_presence_of :layout, :path, :locale + belongs_to :site # La ubicaciĆ³n del Post en el disco