Project

General

Profile

Actions

Refactor #11858

closed

host_inherited_params logic to get ancestry parameters is duplicated

Added by Daniel Lobato Garcia over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

host_inherited_params on app/models/host/managed.rb tries to get organization/location/hostgroup parameters, including ancestry.
The logic to do it is exactly the same for all 3 models, so it should be combined somehow to reduce code duplication.

Actions

Also available in: Atom PDF