diff --git a/app/models/journal.rb b/app/models/journal.rb index 2a186d4ff8..0ef5cecefa 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -48,6 +48,7 @@ class Journal < ActiveRecord::Base has_many :attachable_journals, class_name: Journal::AttachableJournal, dependent: :destroy has_many :customizable_journals, class_name: Journal::CustomizableJournal, dependent: :destroy + after_create :save_data, if: :data after_save :save_data, :touch_journable # Scopes to all journals excluding the initial journal - useful for change