credativUK / redmine_email_inline_images

Handle inline images on incoming emails, so that they are included inline in the issue description
GNU General Public License v2.0
6 stars 12 forks source link

Plugin not working with Redmine 4.0.4.stable #5

Open jurijstoks opened 4 years ago

jurijstoks commented 4 years ago

Plugin not working with Redmine version 4.0.4., is it possible to fix it? Error related to 'alias_method_chain'......

mpauz commented 4 years ago

/plugins/redmine_email_inline_images/lib/redmine_email_inline_images/mail_handler_patch.rb "Line 7"

module RedmineEmailInlineImages
  module MailHandlerPatch
    def self.included(base) # :nodoc:
      base.send(:include, InstanceMethods)

      base.class_eval do
  -      #alias_method_chain :plain_text_body, :email_inline_images
  +      alias_method :plain_text_body_without_email_inline_images, :plain_text_body
  +      alias_method :plain_text_body, :plain_text_body_with_email_inline_images
      end
    end

Looks like all working :)