mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Improvements on validation
This commit is contained in:
parent
8ea865f1b2
commit
a4e5703233
6 changed files with 46 additions and 27 deletions
|
@ -3,7 +3,7 @@ class DomainContact < ActiveRecord::Base
|
|||
belongs_to :contact
|
||||
belongs_to :domain
|
||||
|
||||
attr_accessor :typeahead_value
|
||||
attr_accessor :value_typeahead
|
||||
|
||||
def epp_code_map
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ class DomainContact < ActiveRecord::Base
|
|||
contact_type == TECH
|
||||
end
|
||||
|
||||
def typeahead_value
|
||||
@typeahead_value || contact.try(:name) || nil
|
||||
def value_typeahead
|
||||
@value_typeahead || contact.try(:name) || nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue