mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +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 Api
|
||||||
module V1
|
module V1
|
||||||
module Registrant
|
module Registrant
|
||||||
class ContactsController < BaseController
|
class ContactsController < ::Api::V1::Registrant::BaseController
|
||||||
before_action :set_contacts_pool
|
before_action :set_contacts_pool
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
|
@ -3,7 +3,7 @@ require 'serializers/registrant_api/domain'
|
||||||
module Api
|
module Api
|
||||||
module V1
|
module V1
|
||||||
module Registrant
|
module Registrant
|
||||||
class DomainsController < BaseController
|
class DomainsController < ::Api::V1::Registrant::BaseController
|
||||||
def index
|
def index
|
||||||
limit = params[:limit] || 200
|
limit = params[:limit] || 200
|
||||||
offset = params[:offset] || 0
|
offset = params[:offset] || 0
|
||||||
|
|
|
@ -3,7 +3,7 @@ require 'serializers/registrant_api/domain'
|
||||||
module Api
|
module Api
|
||||||
module V1
|
module V1
|
||||||
module Registrant
|
module Registrant
|
||||||
class RegistryLocksController < BaseController
|
class RegistryLocksController < ::Api::V1::Registrant::BaseController
|
||||||
before_action :set_domain
|
before_action :set_domain
|
||||||
before_action :authorized_to_manage_locks?
|
before_action :authorized_to_manage_locks?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue