lib/tasks/onetimer/deactivate_pax_token_economies.rake
# Fetched stake currency id for PAX stake currency
#
# * Author: Ankit
# * Date: 15/05/2019
# * Reviewed By:
#
Fetched stake currency id for PAX stake currency
Author: Ankit
Date: 15/05/2019
Reviewed By.
Fetched stake currency id for PAX stake currency Author : Ankit Date : 15 / 05 / 2019 Reviewed By .
def fetch_stake_currency_id_for_pax
      @pax_stake_currency = StakeCurrency.where(symbol: 'PAX')
      unless @pax_stake_currency.first.present?
        fail "Invalid stake currency symbol"
      end
      @pax_stake_currency_id = @pax_stake_currency.first.id
    end
def fetch_stake_currency_id_for_pax @pax_stake_currency = StakeCurrency . where ( symbol : 'PAX' ) unless @pax_stake_currency . first . present? fail "Invalid stake currency symbol" end @pax_stake_currency_id = @pax_stake_currency . first . id end
Fetched stake currency id for PAX stake currency
 Author: Ankit
 Date: 15/05/2019
 Reviewed By:
Fetched stake currency id for PAX stake currency Author : Ankit Date : 15 / 05 / 2019 Reviewed By :