app/models/alchemy/attachment.rb in alchemy_cms-5.1.10 vs app/models/alchemy/attachment.rb in alchemy_cms-5.2.0.b1

- old
+ new

@@ -26,11 +26,11 @@ 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 @@ -123,9 +123,13 @@ "file-word" when *TEXT_FILE_TYPES "file-alt" when *EXCEL_FILE_TYPES "file-excel" + when *POWERPOINT_FILE_TYPES + "file-powerpoint" + when *WORD_FILE_TYPES + "file-word" when *VCARD_FILE_TYPES "address-card" when *ARCHIVE_FILE_TYPES "file-archive" when *AUDIO_FILE_TYPES