Closed timogoebel closed 5 years ago
@dLobatog Can you merge this, please? Foreman 1.17 with other plugins installed which use alias_method_chain or Module.prepend it will cause the Cockpit button to not show up, with the patch applied it works fine.
Merging this, someone will need to take care of the plugin to release a newer version containing it.
Awesome, I can confirm this fixed my issue as well.
Yes, looking forward to release with this in it as well. Note to self and others less familiar with foreman setup, for me the file (Ubuntu 18.04) was nested in following (installed using foreman-installer)
/usr/share/foreman/vendor/ruby/<version>/gems/foreman_cockpit_<version>/...
This plugin conflicts with foreman_monitoring (see https://github.com/theforeman/foreman_monitoring/issues/30) because it still uses
alias_method_chain
. This PR replaces the deprecatedalias_method_chain
withModule.prepend
.