Project

General

Profile

« Previous | Next » 

Revision 495b1dbc

Added by Shira Maximov about 4 years ago

Fixes #28734 - Add hostgroup inherited parameters in GET

View differences:

app/models/concerns/nested_ancestry_common.rb
end
module ClassMethods
def nested_attribute_for(*opts)
opts.each do |field|
attr_reader :nested_attribute_fields
def nested_attribute_for(*fields)
@nested_attribute_fields = fields
@nested_attribute_fields.each do |field|
# Example method
# def inherited_compute_profile_id
# read_attribute(:compute_profile_id) || nested_compute_profile_id

Also available in: Unified diff