Sha256: b972f038959d7736dcf4e5eab40216a9aa3ac273de55132c94573eafa549610c
Contents?: true
Size: 419 Bytes
Versions: 17
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true module ShopifyApp module SessionStorage extend ActiveSupport::Concern included do validates :shopify_token, presence: true validates :api_version, presence: true end def with_shopify_session(&block) ShopifyAPI::Auth::Session.temp(shop: shopify_domain, access_token: shopify_token) do |session| block.call(session) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems