app/models/alchemy/attachment.rb in alchemy_cms-4.6.4 vs app/models/alchemy/attachment.rb in alchemy_cms-4.6.5
- old
+ new
@@ -26,10 +26,10 @@
dragonfly_accessor :file, app: :alchemy_attachments do
after_assign { |f| write_attribute(:file_mime_type, f.mime_type) }
end
- stampable stamper_class_name: Alchemy.user_class_name
+ stampable stamper_class_name: Alchemy.user_class.name
has_many :essence_files, class_name: 'Alchemy::EssenceFile', foreign_key: 'attachment_id'
has_many :contents, through: :essence_files
has_many :elements, through: :contents
has_many :pages, through: :elements