Revision ca276237
Added by Tomáš Strachota about 10 years ago
app/models/concerns/nested_ancestry_common.rb | ||
---|---|---|
validates :title, :presence => true, :uniqueness => true
|
||
|
||
scoped_search :on => :title, :complete_value => true, :default_order => true
|
||
scoped_search :on => :name, :complete_value => :true
|
||
|
||
# attribute used by *_names and *_name methods. default is :name
|
||
attr_name :title
|
Also available in: Unified diff
Fixes #4486 - organization not searchable by name