app/controllers/alchemy/base_controller.rb in alchemy_cms-4.0.0.beta vs app/controllers/alchemy/base_controller.rb in alchemy_cms-4.0.0.rc1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # This is the main Alchemy controller all other controllers inherit from. # module Alchemy class BaseController < ApplicationController include Alchemy::ConfigurationMethods @@ -74,10 +76,10 @@ def redirect_or_render_notice if request.xhr? respond_to do |format| format.js do - render text: flash.discard(:warning), status: 403 + render plain: flash.discard(:warning), status: 403 end format.html do render partial: 'alchemy/admin/partials/flash', locals: {message: flash[:warning], flash_type: 'warning'} end