app/models/pulitzer/post.rb in pulitzer-0.12.3 vs app/models/pulitzer/post.rb in pulitzer-0.12.4

- old
+ new

@@ -13,9 +13,10 @@ after_create :create_preview_version attr_accessor :new_preview_version validates :title, presence: true + validates :slug, uniqueness: true TAG_MODELS = ["Pulitzer::Tag"] + Pulitzer.tagging_models def active_version! versions.find_by!(status: Pulitzer::Version.statuses[:active])