Module: ShopifyApp

Defined in:
lib/shopify_app.rb,
lib/shopify_app/utils.rb,
lib/shopify_app/engine.rb,
lib/shopify_app/version.rb,
lib/shopify_app/session/jwt.rb,
lib/shopify_app/configuration.rb,
lib/shopify_app/controller_concerns/itp.rb,
lib/shopify_app/session/session_storage.rb,
lib/shopify_app/jobs/webhooks_manager_job.rb,
lib/shopify_app/managers/webhooks_manager.rb,
lib/shopify_app/middleware/jwt_middleware.rb,
lib/shopify_app/session/session_repository.rb,
lib/shopify_app/jobs/scripttags_manager_job.rb,
lib/shopify_app/managers/scripttags_manager.rb,
lib/shopify_app/session/shop_session_storage.rb,
lib/shopify_app/session/user_session_storage.rb,
app/controllers/shopify_app/callback_controller.rb,
app/controllers/shopify_app/sessions_controller.rb,
app/controllers/shopify_app/webhooks_controller.rb,
lib/shopify_app/session/in_memory_session_store.rb,
lib/shopify_app/session/null_user_session_store.rb,
lib/generators/shopify_app/shopify_app_generator.rb,
lib/generators/shopify_app/views/views_generator.rb,
lib/shopify_app/controller_concerns/embedded_app.rb,
lib/shopify_app/controller_concerns/localization.rb,
app/controllers/concerns/shopify_app/authenticated.rb,
lib/generators/shopify_app/routes/routes_generator.rb,
lib/shopify_app/controller_concerns/csrf_protection.rb,
app/controllers/shopify_app/authenticated_controller.rb,
lib/generators/shopify_app/install/install_generator.rb,
lib/shopify_app/controller_concerns/login_protection.rb,
lib/shopify_app/session/in_memory_shop_session_store.rb,
lib/shopify_app/session/in_memory_user_session_store.rb,
lib/shopify_app/middleware/same_site_cookie_middleware.rb,
app/controllers/concerns/shopify_app/require_known_shop.rb,
lib/shopify_app/controller_concerns/payload_verification.rb,
lib/shopify_app/controller_concerns/webhook_verification.rb,
lib/shopify_app/test_helpers/webhook_verification_helper.rb,
lib/generators/shopify_app/shop_model/shop_model_generator.rb,
lib/generators/shopify_app/user_model/user_model_generator.rb,
lib/shopify_app/controller_concerns/app_proxy_verification.rb,
lib/generators/shopify_app/add_webhook/add_webhook_generator.rb,
lib/generators/shopify_app/controllers/controllers_generator.rb,
app/controllers/shopify_app/extension_verification_controller.rb,
lib/generators/shopify_app/home_controller/home_controller_generator.rb,
lib/generators/shopify_app/products_controller/products_controller_generator.rb,
lib/generators/shopify_app/app_proxy_controller/app_proxy_controller_generator.rb,
lib/generators/shopify_app/authenticated_controller/authenticated_controller_generator.rb,
lib/generators/shopify_app/rotate_shopify_token_job/rotate_shopify_token_job_generator.rb,
lib/generators/shopify_app/add_after_authenticate_job/add_after_authenticate_job_generator.rb,
lib/generators/shopify_app/add_marketing_activity_extension/add_marketing_activity_extension_generator.rb

Defined Under Namespace

Modules: AppProxyVerification, Authenticated, CsrfProtection, EmbeddedApp, Generators, Itp, Localization, LoginProtection, PayloadVerification, RequireKnownShop, SessionStorage, ShopSessionStorage, TestHelpers, UserSessionStorage, Utils, WebhookVerification Classes: AuthenticatedController, CallbackController, Configuration, Engine, ExtensionVerificationController, InMemorySessionStore, InMemoryShopSessionStore, InMemoryUserSessionStore, JWT, JWTMiddleware, MissingWebhookJobError, NullUserSessionStore, SameSiteCookieMiddleware, ScripttagsManager, ScripttagsManagerJob, SessionRepository, SessionsController, WebhooksController, WebhooksManager, WebhooksManagerJob

Constant Summary collapse

VERSION =
'14.2.0'

Class Method Summary collapse

Class Method Details

.configurationObject


83
84
85
# File 'lib/shopify_app/configuration.rb', line 83

def self.configuration
  @configuration ||= Configuration.new
end

.configuration=(config) ⇒ Object


87
88
89
# File 'lib/shopify_app/configuration.rb', line 87

def self.configuration=(config)
  @configuration = config
end

.configure {|configuration| ... } ⇒ Object

Yields:


91
92
93
# File 'lib/shopify_app/configuration.rb', line 91

def self.configure
  yield configuration
end

.rails6?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/shopify_app.rb', line 10

def self.rails6?
  Rails::VERSION::MAJOR >= 6
end

.use_webpacker?Boolean

Returns:

  • (Boolean)

14
15
16
17
18
# File 'lib/shopify_app.rb', line 14

def self.use_webpacker?
  rails6? &&
    defined?(Webpacker) == 'constant' &&
    !configuration.disable_webpacker
end