app/models/pulitzer/post.rb in pulitzer-0.3.9 vs app/models/pulitzer/post.rb in pulitzer-0.4.0

- old
+ new

@@ -2,10 +2,10 @@ class Post < ActiveRecord::Base include ForeignOffice::Broadcaster if defined? ForeignOffice extend ::FriendlyId has_many :versions belongs_to :post_type - delegate :post_type_content_element_types, :allow_free_form?, to: :post_type + delegate :post_type_content_element_types, :free_form_section_types, :has_free_form_sections?, :has_templated_content_elements?, to: :post_type delegate :content_elements, :post_tags, :has_label_type, :has_label, :post_tags_for, to: :active_version, allow_nil: true friendly_id :title, use: [:slugged, :finders] after_create :create_preview_version attr_accessor :new_preview_version