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