mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
make contacts searchable
This commit is contained in:
parent
b088d39b0e
commit
3d2c9c01a6
7 changed files with 56 additions and 12 deletions
|
@ -345,6 +345,10 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def search_name
|
||||
"#{code} #{name}"
|
||||
end
|
||||
|
||||
def set_linked
|
||||
statuses << LINKED if statuses.detect { |s| s == LINKED }.blank?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue