HugoHasenbein / redmine_preview_pdf

Plugin for Redmine. Show pdf attachments in preview pane.
https://www.redmine.org/plugins/redmine_preview_pdf
GNU General Public License v2.0
12 stars 7 forks source link

undefined method `alias_method_chain' #4

Open code-chicken opened 4 years ago

code-chicken commented 4 years ago

After installing the plugin I get the following error when I try to start redmine:

plugins/redmine_preview_pdf/lib/redmine_preview_pdf/patches/attachments_controller_patch.rb:32:in `block in included': undefined method `alias_method_chain' for AttachmentsController:Class (NoMethodError)
Did you mean?  alias_method

I am using ruby 2.4.6 with rails 5.2.3

nanego commented 4 years ago

Hello It seems you are using Redmine 4. I have opened a pull request (#2) to make this great plugin compatible with Redmine 4 but it has still not been merged. For the moment, a solution is to use my fork here: https://github.com/nanego/redmine_preview_pdf