use string for class_name

pull/6116/head
Jens Ulferts 7 years ago
parent f0d836e4e1
commit 2d65eb3ebf
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 4
      app/models/journal.rb

@ -44,8 +44,8 @@ class Journal < ActiveRecord::Base
belongs_to :user
belongs_to :journable, polymorphic: true
has_many :attachable_journals, class_name: Journal::AttachableJournal, dependent: :destroy
has_many :customizable_journals, class_name: Journal::CustomizableJournal, dependent: :destroy
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

Loading…
Cancel
Save