From 90fd6a050f01a905d2be7941176576c1bc4f54d8 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 21 Jan 2019 17:57:51 +0200 Subject: [PATCH] Use absolute class path in Registrant API Otherwise Api::V1::Registrant::BaseController clashes with Api::V1::BaseController --- app/controllers/api/v1/registrant/contacts_controller.rb | 2 +- app/controllers/api/v1/registrant/domains_controller.rb | 2 +- app/controllers/api/v1/registrant/registry_locks_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/registrant/contacts_controller.rb b/app/controllers/api/v1/registrant/contacts_controller.rb index 4a2be2159..cef8176e1 100644 --- a/app/controllers/api/v1/registrant/contacts_controller.rb +++ b/app/controllers/api/v1/registrant/contacts_controller.rb @@ -3,7 +3,7 @@ require 'serializers/registrant_api/contact' module Api module V1 module Registrant - class ContactsController < BaseController + class ContactsController < ::Api::V1::Registrant::BaseController before_action :set_contacts_pool def index diff --git a/app/controllers/api/v1/registrant/domains_controller.rb b/app/controllers/api/v1/registrant/domains_controller.rb index 4e5c8bb28..130234b90 100644 --- a/app/controllers/api/v1/registrant/domains_controller.rb +++ b/app/controllers/api/v1/registrant/domains_controller.rb @@ -3,7 +3,7 @@ require 'serializers/registrant_api/domain' module Api module V1 module Registrant - class DomainsController < BaseController + class DomainsController < ::Api::V1::Registrant::BaseController def index limit = params[:limit] || 200 offset = params[:offset] || 0 diff --git a/app/controllers/api/v1/registrant/registry_locks_controller.rb b/app/controllers/api/v1/registrant/registry_locks_controller.rb index d431b5cd0..a8f420ae5 100644 --- a/app/controllers/api/v1/registrant/registry_locks_controller.rb +++ b/app/controllers/api/v1/registrant/registry_locks_controller.rb @@ -3,7 +3,7 @@ require 'serializers/registrant_api/domain' module Api module V1 module Registrant - class RegistryLocksController < BaseController + class RegistryLocksController < ::Api::V1::Registrant::BaseController before_action :set_domain before_action :authorized_to_manage_locks?