app/controllers/spotlight/application_controller.rb in blacklight-spotlight-0.2.0 vs app/controllers/spotlight/application_controller.rb in blacklight-spotlight-0.3.0
- old
+ new
@@ -3,7 +3,11 @@
module Spotlight
# Inherit from the host app's ApplicationController
# This will configure e.g. the layout used by the host
class ApplicationController < ::ApplicationController
include Spotlight::Concerns::ApplicationController
+
+ before_filter do
+ flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice]
+ end
end
end