mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Renamed owner_contact to registrant
This commit is contained in:
parent
92f41ebe0b
commit
8cd3dcf551
21 changed files with 126 additions and 812 deletions
|
@ -3,7 +3,7 @@ class Admin::DomainsController < AdminController
|
|||
before_action :set_domain, only: [:show, :edit, :update, :zonefile]
|
||||
|
||||
def index
|
||||
@q = Domain.includes(:registrar, :owner_contact).search(params[:q])
|
||||
@q = Domain.includes(:registrar, :registrant).search(params[:q])
|
||||
@domains = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ class Epp::DomainsController < EppController
|
|||
|
||||
def find_domain
|
||||
domain_name = params[:parsed_frame].css('name').text.strip.downcase
|
||||
@domain = Epp::Domain.where(name: domain_name).includes(owner_contact: :registrar).first
|
||||
@domain = Epp::Domain.where(name: domain_name).includes(registrant: :registrar).first
|
||||
|
||||
unless @domain
|
||||
epp_errors << {
|
||||
|
|
|
@ -34,7 +34,7 @@ class Epp::KeyrelaysController < EppController
|
|||
|
||||
def find_domain
|
||||
domain_name = params[:parsed_frame].css('name').text.strip.downcase
|
||||
domain = Epp::Domain.includes(:owner_contact).find_by(name: domain_name)
|
||||
domain = Epp::Domain.includes(:registrant).find_by(name: domain_name)
|
||||
|
||||
unless domain
|
||||
epp_errors << {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue