Module: DuodealerApp

Defined in:
lib/duodealer_app.rb,
lib/duodealer_app/utils.rb,
lib/duodealer_app/engine.rb,
lib/duodealer_app/version.rb,
lib/duodealer_app/configuration.rb,
lib/duodealer_app/controller_concerns/itp.rb,
lib/duodealer_app/session/session_storage.rb,
lib/duodealer_app/jobs/webhooks_manager_job.rb,
lib/duodealer_app/managers/webhooks_manager.rb,
lib/duodealer_app/session/session_repository.rb,
lib/duodealer_app/jobs/scripttags_manager_job.rb,
lib/duodealer_app/managers/scripttags_manager.rb,
app/controllers/duodealer_app/callback_controller.rb,
app/controllers/duodealer_app/sessions_controller.rb,
app/controllers/duodealer_app/webhooks_controller.rb,
lib/duodealer_app/session/in_memory_session_store.rb,
lib/duodealer_app/controller_concerns/embedded_app.rb,
lib/duodealer_app/controller_concerns/localization.rb,
lib/generators/duodealer_app/views/views_generator.rb,
app/controllers/concerns/duodealer_app/authenticated.rb,
lib/generators/duodealer_app/duodealer_app_generator.rb,
lib/generators/duodealer_app/routes/routes_generator.rb,
app/controllers/duodealer_app/authenticated_controller.rb,
lib/duodealer_app/controller_concerns/login_protection.rb,
lib/generators/duodealer_app/install/install_generator.rb,
lib/duodealer_app/middleware/same_site_cookie_middleware.rb,
lib/duodealer_app/controller_concerns/webhook_verification.rb,
lib/duodealer_app/controller_concerns/app_proxy_verification.rb,
lib/generators/duodealer_app/user_model/user_model_generator.rb,
lib/generators/duodealer_app/add_webhook/add_webhook_generator.rb,
lib/generators/duodealer_app/controllers/controllers_generator.rb,
app/controllers/duodealer_app/extension_verification_controller.rb,
lib/duodealer_app/session/storage_strategies/user_storage_strategy.rb,
lib/generators/duodealer_app/account_model/account_model_generator.rb,
lib/duodealer_app/session/storage_strategies/account_storage_strategy.rb,
lib/generators/duodealer_app/home_controller/home_controller_generator.rb,
lib/generators/duodealer_app/app_proxy_controller/app_proxy_controller_generator.rb,
lib/generators/duodealer_app/authenticated_controller/authenticated_controller_generator.rb,
lib/generators/duodealer_app/add_after_authenticate_job/add_after_authenticate_job_generator.rb,
lib/generators/duodealer_app/rotate_duodealer_token_job/rotate_duodealer_token_job_generator.rb,
lib/generators/duodealer_app/add_marketing_activity_extension/add_marketing_activity_extension_generator.rb

Defined Under Namespace

Modules: AppProxyVerification, Authenticated, EmbeddedApp, Generators, Itp, Localization, LoginProtection, SessionStorage, Utils, WebhookVerification Classes: AuthenticatedController, CallbackController, Configuration, Engine, ExtensionVerificationController, InMemorySessionStore, MissingWebhookJobError, SameSiteCookieMiddleware, ScripttagsManager, ScripttagsManagerJob, SessionRepository, SessionsController, WebhooksController, WebhooksManager, WebhooksManagerJob

Constant Summary collapse

VERSION =
"1.0.4"

Class Method Summary collapse

Class Method Details

.configurationObject



74
75
76
# File 'lib/duodealer_app/configuration.rb', line 74

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

.configuration=(config) ⇒ Object



78
79
80
# File 'lib/duodealer_app/configuration.rb', line 78

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

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

Yields:



82
83
84
# File 'lib/duodealer_app/configuration.rb', line 82

def self.configure
  yield configuration
end

.rails6?Boolean

Returns:

  • (Boolean)


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

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

.use_webpacker?Boolean

Returns:

  • (Boolean)


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

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