Actions
Refactor #13883
closedHost::Managed.last_report_object association uses deprecated :order parameter
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
The last_report_object association on Host::Managed uses a deprecated :order parameter, but should use a scope block and call the order() method, e.g.
has_one :last_report_object, ... :order => "#{Report.table_name}.id DESC"
becomes
has_one :last_report_object, -> { order("#{Report.table_name}.id DESC") }
The interfaces association in Host::Base was already changed like this in #7230.
Actions