make sure data is saved after creation already too

pull/2462/head
Markus Kahl 10 years ago
parent 88c8b09fbd
commit a90d059841
  1. 1
      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

Loading…
Cancel
Save