app/services/token_management/grant_eth_stake_currency.rb
def check_environment_validation
      #check if env is non production
      if GlobalConstant::Base.main_sub_environment?
        return validation_error(
          'a_s_tm_g_2',
          'unauthorized_access_response',
          [],
          GlobalConstant::ErrorAction.default
        )
      end
      success
    end
# check if the given api is not from production main environment
#
# * Author: Ankit
# * Date: 24/01/2019
# * Reviewed By:
#
# @return [Result::Base]
#
check if the given api is not from production main environment
Author: Ankit
Date: 24/01/2019
Reviewed By.
check if the given api is not from production main environment Author : Ankit Date : 24 / 01 / 2019 Reviewed By .
def check_environment_validation
      if GlobalConstant::Base.main_sub_environment?
        return validation_error(
          'a_s_tm_g_2',
          'unauthorized_access_response',
          [],
          GlobalConstant::ErrorAction.default
        )
      end
      success
    end
def check_environment_validation if GlobalConstant :: Base . main_sub_environment? return validation_error ( 'a_s_tm_g_2' , 'unauthorized_access_response' , [ ] , GlobalConstant :: ErrorAction . default ) end success end
check if the given api is not from production main environment
 Author: Ankit
 Date: 24/01/2019
 Reviewed By:
check if the given api is not from production main environment Author : Ankit Date : 24 / 01 / 2019 Reviewed By :
#check if env is non production
None
Result::Base