app/services/test_economy_management/activate.rb
def check_activation_status

      return error_with_data(
        'tem_a_1',
        'unauthorized_to_access_main_env',
        GlobalConstant::ErrorAction.default
      ) if is_main_sub_env?

      return error_with_data(
          'tem_a_2',
          'token_demo_already_setup',
          GlobalConstant::ErrorAction.default
      ) if registered_in_mappy_server? && test_economy_qr_code_uploaded?

      success

    end
# Check if activation is already completed
#
# * Author: Puneet
# * Date: 10/04/2019
# * Reviewed By: Sunil
#
# @return [Result::Base]
#
Check if activation is already completed
Author: Puneet
Date: 10/04/2019
Reviewed By: Sunil
Check if activation is already completed Author : Puneet Date : 10 / 04 / 2019 Reviewed By : Sunil
def check_activation_status
      return error_with_data(
        'tem_a_1',
        'unauthorized_to_access_main_env',
        GlobalConstant::ErrorAction.default
      ) if is_main_sub_env?
      return error_with_data(
          'tem_a_2',
          'token_demo_already_setup',
          GlobalConstant::ErrorAction.default
      ) if registered_in_mappy_server? && test_economy_qr_code_uploaded?
      success
    end
def check_activation_status return error_with_data ( 'tem_a_1' , 'unauthorized_to_access_main_env' , GlobalConstant :: ErrorAction . default ) if is_main_sub_env? return error_with_data ( 'tem_a_2' , 'token_demo_already_setup' , GlobalConstant :: ErrorAction . default ) if registered_in_mappy_server? && test_economy_qr_code_uploaded? success end
Check if activation is already completed
 Author: Puneet
 Date: 10/04/2019
 Reviewed By: Sunil
Check if activation is already completed Author : Puneet Date : 10 / 04 / 2019 Reviewed By : Sunil
None
Result::Base