Sha256: edba34d3c6bbed39e5cf157e675cdd226976a1baa5d37aa92d25a6a7a9eaf3f5

Contents?: true

Size: 442 Bytes

Versions: 58

Compression:

Stored size: 442 Bytes

Contents

require 'spotlight'

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_action do
      flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice]
    end

    before_action :set_paper_trail_whodunnit
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.4.0 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.3.3 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.3.2 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.3.1 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.3.0 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.2.1 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.2.0 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.1.0 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.2 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.1 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0.rc6 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0.rc5 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0.rc4 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0.rc3 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0.rc2 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-2.0.0.rc1 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-1.5.1 app/controllers/spotlight/application_controller.rb
blacklight-spotlight-1.4.1 app/controllers/spotlight/application_controller.rb