Revision 6526673d
Added by Ohad Levy about 14 years ago
- ID 6526673d9b08741fdcee9879665b53937680a8ae
app/models/group_parameter.rb | ||
---|---|---|
class GroupParameter < Parameter
|
||
belongs_to :hostgroup
|
||
validates_presence_of :hostgroup_id
|
||
validates_presence_of :hostgroup_id, :unless => :nested
|
||
validates_uniqueness_of :name, :scope => :hostgroup_id
|
||
end
|
Also available in: Unified diff
fixes #257 - When creating a new hostgroup, it fails if I add a parameter when creating