Use absolute class path in Registrant API

Otherwise Api::V1::Registrant::BaseController clashes with
Api::V1::BaseController
This commit is contained in:
Artur Beljajev 2019-01-21 17:57:51 +02:00
parent 4894b39f0f
commit 90fd6a050f
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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?