mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
change condition for render endpoint in specific envinronment
This commit is contained in:
parent
72f184d9b0
commit
44296ab045
5 changed files with 17 additions and 4 deletions
|
@ -3,7 +3,7 @@ require 'auth_token/auth_token_decryptor'
|
|||
module Api
|
||||
module V1
|
||||
module AccreditationCenter
|
||||
if Rails.env.development? || Rails.env.staging? || Rails.env.test?
|
||||
if Feature.allow_accr_endspoints?
|
||||
class BaseController < ActionController::API
|
||||
rescue_from ActiveRecord::RecordNotFound, with: :show_not_found_error
|
||||
rescue_from ActiveRecord::RecordInvalid, with: :show_invalid_record_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue