app/controllers/alchemy/base_controller.rb in alchemy_cms-6.0.0 vs app/controllers/alchemy/base_controller.rb in alchemy_cms-6.0.1

- old
+ new

@@ -7,9 +7,16 @@ include Alchemy::ConfigurationMethods include Alchemy::AbilityHelper include Alchemy::ControllerActions include Alchemy::Modules + # Include Turbolinks explicitly in case Alchemy is embedded into a + # larger application that doesn't work with Turbolinks. The app + # can then set config.turbolinks.auto_include = false so that + # Turbolinks is not included in the app controllers. + include Turbolinks::Controller + ::ActionDispatch::Assertions.include ::Turbolinks::Assertions + protect_from_forgery before_action :mailer_set_url_options before_action :set_locale