Refactor #20957

Replace alias_method_chain with Module prepend
Related issues
Associated revisions
History
#1
Updated by Anonymous over 3 years ago
- Blocks Tracker #15715: Rails 5.0 upgrade tasks added
#2
Updated by The Foreman Bot over 3 years ago
- Pull request https://github.com/theforeman/foreman/pull/4845 added
#3
Updated by Anonymous over 3 years ago
- Blocks Tracker #20948: Rails 5.1 upgrade tasks added
#4
Updated by Ivan Necas over 3 years ago
- Status changed from Ready For Testing to Closed
#5
Updated by Lukas Zapletal about 3 years ago
- Related to Bug #14797: Medium validation wrong with Katello and foreman_bootdisk added
Fixes #20957 - Replace alias_method_chain with Module prepend
Deprecated in Rails 5.0 and will be removed in 5.1. Some instances of
classes overwriting existing methods can be handled with `super`, other
concerns or modules are changed to use prepend instead of include.
Note: no ActiveSupport::Concern support for prepends, so load class
methods the pure Ruby way.