Revision 9158ff3c
Added by Dominic Cleal almost 10 years ago
app/models/lookup_value.rb | ||
---|---|---|
attr_accessor :host_or_hostgroup
|
||
|
||
serialize :value
|
||
attr_name :value
|
||
attr_name :match
|
||
|
||
scope :default, lambda { where(:match => "default").limit(1) }
|
||
|
||
... | ... | |
scoped_search :in => :lookup_key, :on => :key, :rename => :lookup_key, :complete_value => true
|
||
|
||
def name
|
||
value
|
||
match
|
||
end
|
||
|
||
def value_before_type_cast
|
Also available in: Unified diff
fixes #5671 - LookupValue name should be matcher, value is too long