Skip to content

Commit

Permalink
Merge pull request #978 from adfaris/shop-session-stratagy-back-to-shop
Browse files Browse the repository at this point in the history
Update shopify_app.rb to match the documentation.
  • Loading branch information
Tim Anema authored Apr 29, 2020
2 parents 73cbb20 + 0b2bf43 commit f4378a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ShopifyApp.configure do |config|
config.embedded_app = <%= embedded_app? %>
config.after_authenticate_job = false
config.api_version = "<%= @api_version %>"
config.shop_session_repository = 'ShopifyApp::InMemoryShopSessionStore'
config.shop_session_repository = 'Shop'
end

# ShopifyApp::Utils.fetch_known_api_versions # Uncomment to fetch known api versions from shopify servers on boot
Expand Down
4 changes: 2 additions & 2 deletions test/generators/install_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class InstallGeneratorTest < Rails::Generators::TestCase
assert_match 'config.scope = "read_orders write_products"', shopify_app
assert_match 'config.embedded_app = true', shopify_app
assert_match 'config.api_version = "unstable"', shopify_app
assert_match "config.shop_session_repository = 'ShopifyApp::InMemoryShopSessionStore'", shopify_app
assert_match "config.shop_session_repository = 'Shop'", shopify_app
end
end

Expand All @@ -56,7 +56,7 @@ class InstallGeneratorTest < Rails::Generators::TestCase
assert_match "config.secret = ENV['SHOPIFY_API_SECRET']", shopify_app
assert_match 'config.scope = "read_orders write_products"', shopify_app
assert_match 'config.embedded_app = true', shopify_app
assert_match "config.shop_session_repository = 'ShopifyApp::InMemoryShopSessionStore'", shopify_app
assert_match "config.shop_session_repository = 'Shop'", shopify_app
end
end

Expand Down

0 comments on commit f4378a3

Please sign in to comment.