mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Merge branch 'master' of github.com:internetee/registry
Conflicts: app/views/layouts/application.haml config/locales/en.yml
This commit is contained in:
commit
3bb80b20d2
26 changed files with 328 additions and 409 deletions
|
@ -1,7 +1,6 @@
|
|||
class Contact < ActiveRecord::Base
|
||||
# TODO: Foreign contact will get email with activation link/username/temp password
|
||||
# TODO: Phone number validation, in first phase very minimam in order to support current registries
|
||||
# TODO: Validate presence of name
|
||||
|
||||
include EppErrors
|
||||
|
||||
|
@ -18,7 +17,7 @@ class Contact < ActiveRecord::Base
|
|||
|
||||
accepts_nested_attributes_for :address, :disclosure
|
||||
|
||||
validates :phone, :email, :ident, :address, :registrar, presence: true
|
||||
validates :name, :phone, :email, :ident, :address, :registrar, presence: true
|
||||
|
||||
validate :ident_must_be_valid
|
||||
|
||||
|
|
|
@ -99,7 +99,12 @@ class Domain < ActiveRecord::Base
|
|||
def make_snapshot
|
||||
{
|
||||
name: name,
|
||||
status: status
|
||||
status: status,
|
||||
period: period,
|
||||
period_unit: period_unit,
|
||||
registrar_id: registrar.try(:id),
|
||||
valid_to: valid_to,
|
||||
valid_from: valid_from
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue