Redmine 4.0.x now needs rails 5.x some funtions and uses are now deprecated (ActionDispatch::Callbacks, or "to_prepare", ...) aim: make the plugin ready for redmine 4.x