redmine_preview_office icon indicating copy to clipboard operation
redmine_preview_office copied to clipboard

Undefined alias_method_chain

Open camlafit opened this issue 5 years ago • 4 comments

Hello

I've got an error during plugin installation

NoMethodError: undefined method `alias_method_chain' for AttachmentsController:Class
Did you mean?  alias_method

Looks use in two place :

  • plugins/redmine_preview_office/lib/redmine_preview_office/patches/admin_controller_patch.rb:
    alias_method_chain :info, :libreoffice_for_preview_office
  • plugins/redmine_preview_office/lib/redmine_preview_office/patches/attachments_controller_patch.rb:
    alias_method_chain :show, :office

Looks related to this change : https://littlelines.com/blog/2018/01/31/replace-alias-method-chain on rails 5.x

maybe blocking #9

camlafit avatar Apr 01 '19 15:04 camlafit

Hello,

I've got the same issue on Redmine 4.0.2 with RAILS 4.2.

Ez3kield avatar Apr 05 '19 09:04 Ez3kield

Same problem here. Redmine 4.0.3.

pielat avatar May 14 '19 21:05 pielat

mee too

cg200776 avatar Jun 27 '19 03:06 cg200776

and i have same problem too

savaroma avatar Jan 10 '20 09:01 savaroma