app/models/documented_content.rb in knitkit-2.1.3 vs app/models/documented_content.rb in knitkit-2.1.4

- old
+ new

@@ -1,18 +1,18 @@ class DocumentedContent < Content - before_save :check_internal_indentifier + before_save :check_internal_identifier def to_param permalink end - def check_internal_indentifier + def check_internal_identifier self.internal_identifier = self.permalink if self.internal_identifier.blank? end def content_hash - {:id => self.id, :title => self.title, :body_html => self.body_html} + {:id => self.id, :title => self.title, :body_html => self.body_html} end def self.find_published_by_section(active_publication, website_section) published_content = [] documented_item = DocumentedItem.where(["online_document_section_id = ?", website_section.id]).first \ No newline at end of file