Merge pull request #31 from opf/fix/wiki_journals_after_2.3.17

removes explicit casting of changes to yaml
pull/32/head
Martin Czuchra 12 years ago
commit 4104f501ce
  1. 4
      app/models/wiki_content.rb

@ -21,7 +21,7 @@ class WikiContent < ActiveRecord::Base
validates_length_of :comments, :maximum => 255, :allow_nil => true validates_length_of :comments, :maximum => 255, :allow_nil => true
attr_accessor :comments attr_accessor :comments
#attr_protected :author_id #attr_protected :author_id
before_save :comments_to_journal_notes before_save :comments_to_journal_notes
@ -100,7 +100,7 @@ class WikiContent < ActiveRecord::Base
changes.delete("text") changes.delete("text")
changes["data"] = hash[:text] changes["data"] = hash[:text]
changes["compression"] = hash[:compression] changes["compression"] = hash[:compression]
update_attribute(:changes, changes.to_yaml) update_attribute(:changes, changes)
end end
def text def text

Loading…
Cancel
Save