Sha256: dd7fdd39faa13f4f123f79aa2d972ee5ebe6961f737fcccb5ddf8be3d439897d

Contents?: true

Size: 430 Bytes

Versions: 47

Compression:

Stored size: 430 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::Session.temp(
        domain: shopify_domain,
        token: shopify_token,
        api_version: api_version,
        &block
      )
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
ruby_shopify_app-1.3.3 lib/ruby_shopify_app/session/session_storage.rb
ruby_shopify_app-1.3.2 lib/ruby_shopify_app/session/session_storage.rb
ruby_shopify_app-1.3.1 lib/ruby_shopify_app/session/session_storage.rb
ruby_shopify_app-1.3.0 lib/ruby_shopify_app/session/session_storage.rb
ruby_shopify_app-1.2.0 lib/ruby_shopify_app/session/session_storage.rb
ruby_shopify_app-1.1.0 lib/ruby_shopify_app/session/session_storage.rb
ruby_shopify_app-1.0.0 lib/shopify_app/session/session_storage.rb
shopify_app-18.1.3 lib/shopify_app/session/session_storage.rb
shopify_app-18.1.2 lib/shopify_app/session/session_storage.rb
shopify_app-18.1.1 lib/shopify_app/session/session_storage.rb
shopify_app-18.1.0 lib/shopify_app/session/session_storage.rb
shopify_app-18.0.4 lib/shopify_app/session/session_storage.rb
shopify_app-18.0.3 lib/shopify_app/session/session_storage.rb
shopify_app-18.0.2 lib/shopify_app/session/session_storage.rb
shopify_app-18.0.1 lib/shopify_app/session/session_storage.rb
shopify_app-18.0.0 lib/shopify_app/session/session_storage.rb
shopify_app-17.2.1 lib/shopify_app/session/session_storage.rb
shopify_app-17.2.0 lib/shopify_app/session/session_storage.rb
shopify_app-17.1.1 lib/shopify_app/session/session_storage.rb
shopify_app-17.1.0 lib/shopify_app/session/session_storage.rb