Restream / notify_custom_users

Email Notifications for Custom field with User type
Apache License 2.0
14 stars 11 forks source link

redmine-4.1.0 compat #6

Open sankaran45 opened 4 years ago

sankaran45 commented 4 years ago

Hi, for redmine-4.1.0 compat i think the following changes are needed:

in init.rb change to change to_prepare to refer to ActiveSupport::Reloader.to_prepare do

in issue_patch.rb change

alias_method_chain :notified_users, :custom_users

alias_method :notified_users_without_custom_users, :notified_users alias_method :notified_users, :notified_users_with_custom_users

kirkpatt commented 4 years ago

Thank you very much! This solved my issue!

nni06 commented 2 years ago

Hi, I have upgraded my redmine to Redmine version 4.2.1.stable Ruby version 2.5.5-p157 (2019-03-15) [x86_64-linux-gnu] Rails version 5.2.5 and unfortunately, this plugin does not work. I have done the above changes but I still have the same issue. The redmine server does not even start. Might be a problem of incompatibility with Rails version? Please help. Thanks