Sha256: 9bf66472a4599945b727e943a41b40831c9fa955476e218f18d15d219a7e27bc

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 Bytes

Contents

# Make sure we have everything loaded before patching classes
Rails.application.config.to_prepare do
  # Allows to render Alchemy content within Solidus' controller views
  Spree::BaseController.include Alchemy::ControllerActions
  Spree::BaseController.include Alchemy::ConfigurationMethods

  # Hook into SolidusAuthDevise controllers if present
  if defined? Spree::Auth::Engine
    Spree::UserPasswordsController.include Alchemy::ControllerActions
    Spree::UserConfirmationsController.include Alchemy::ControllerActions
    Spree::UserRegistrationsController.include Alchemy::ControllerActions
    Spree::UserSessionsController.include Alchemy::ControllerActions
  end
end

# Do not prefix element view partials with `spree` namespace.
# See https://github.com/AlchemyCMS/alchemy_cms/issues/1626
ActionView::Base.prefix_partial_path_with_controller_namespace = false

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy-solidus-2.5.1 lib/alchemy/solidus/alchemy_in_solidus.rb