Project

General

Profile

« Previous | Next » 

Revision 6807d423

Added by Stephen Benjamin about 10 years ago

fixes #5444 - add param_false? host method and allow in templates

View differences:

app/models/concerns/host_common.rb
params.has_key?(name) && LookupKey::TRUE_VALUES.include?(params[name])
end
def param_false? name
params.has_key?(name) && LookupKey::FALSE_VALUES.include?(params[name])
end
def cg_class_ids
cg_ids = if kind_of?(Hostgroup)
path.each.map(&:config_group_ids).flatten.uniq

Also available in: Unified diff