Project

General

Profile

« Previous | Next » 

Revision 38964973

Added by Dominic Cleal over 6 years ago

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.

View differences:

app/models/host/base.rb
module Host
class Base < ApplicationRecord
include Foreman::STI
prepend Foreman::STI
include Authorizable
include Parameterizable::ByName
include DestroyFlag

Also available in: Unified diff