mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Alias attribute
This commit is contained in:
parent
bff2d88036
commit
26fa15f76c
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,8 @@ class Registrar < ActiveRecord::Base
|
|||
allow_blank: true, if: proc { |c| c.email_changed? }
|
||||
validates :billing_email, email_format: { message: :invalid }, allow_blank: true
|
||||
|
||||
alias_attribute :contact_email, :email
|
||||
|
||||
WHOIS_TRIGGERS = %w(name email phone street city state zip)
|
||||
|
||||
after_commit :update_whois_records
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue