mirror of
https://github.com/internetee/registry.git
synced 2025-06-03 03:07:28 +02:00
Use absolute class path in Registrant API
Otherwise Api::V1::Registrant::BaseController clashes with Api::V1::BaseController
This commit is contained in:
parent
4894b39f0f
commit
90fd6a050f
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue