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.
Related issues
Refactor #20957: Replace alias_method_chain with Module prepend
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.