Sha256: 2e9bcd71208878e1d40b24c93254c6c0b6fba6d81a43ce08ef5abf7665af8e32

Contents?: true

Size: 653 Bytes

Versions: 9

Compression:

Stored size: 653 Bytes

Contents

##
# If there is the Devise Constant loaded, we can assume that we use it as the authentication method
# then we set the ParentController of device as the Spree::BaseController
# https://github.com/AlchemyCMS/alchemy-solidus/issues/10
if Object.const_defined?("Devise")
  Devise.setup do |config|
    config.parent_controller = "Spree::BaseController"
  end
end

# Allow Alchemy content within Solidus views
Spree::BaseController.send :include, Alchemy::ControllerActions
Spree::UserSessionsController.send :include, Alchemy::ControllerActions if defined? Spree::UserSessionsController
Spree::BaseController.send :include, Alchemy::ConfigurationMethods

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy-solidus-1.1.1 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.5.0 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.4.0 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.3.2 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.3.1 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.3.0 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.2.0 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-2.0.0 lib/alchemy/solidus/alchemy_in_solidus.rb
alchemy-solidus-1.1.0 lib/alchemy/solidus/alchemy_in_solidus.rb