o_auth.rb 465 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. # This resource is deprecated and will be removed in a future version of this gem.
  3. # Use ShopifyAPI::ApiPermission.destroy instead
  4. module ShopifyAPI
  5. class OAuth < Base
  6. self.collection_name = 'oauth'
  7. def self.revoke
  8. warn '[DEPRECATED] ShopifyAPI::OAuth#revoke is deprecated and will be removed in a future version. ' \
  9. 'Use ShopifyAPI::ApiPermission#destroy instead.'
  10. delete(:revoke)
  11. end
  12. end
  13. end