Sha256: cf14b47fc83442701ee1898562e031a4f4b876abda28c07434111d53d9d31895

Contents?: true

Size: 519 Bytes

Versions: 34

Compression:

Stored size: 519 Bytes

Contents

class Dorsale::ApplicationController < ::ApplicationController
  include Pundit
  include Agilibox::BackUrlConcern
  include Agilibox::SortingHelper

  after_action :verify_authorized
  after_action :verify_policy_scoped

  layout -> {
    if request.xhr?
      false
    else
      "application"
    end
  }

  def filters_jar
    cookies
  end

  def model
    raise NotImplementedError
  end

  helper_method :model
  helper_method :filters_jar

  def scope
    policy_scope(model)
  end

  helper_method :scope
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
dorsale-3.19.1 app/controllers/dorsale/application_controller.rb
dorsale-3.19.0 app/controllers/dorsale/application_controller.rb
dorsale-3.18.0 app/controllers/dorsale/application_controller.rb
dorsale-3.17.0 app/controllers/dorsale/application_controller.rb
dorsale-3.16.0 app/controllers/dorsale/application_controller.rb
dorsale-3.15.0 app/controllers/dorsale/application_controller.rb
dorsale-3.14.11 app/controllers/dorsale/application_controller.rb
dorsale-3.14.10 app/controllers/dorsale/application_controller.rb
dorsale-3.14.9 app/controllers/dorsale/application_controller.rb
dorsale-3.14.8 app/controllers/dorsale/application_controller.rb
dorsale-3.14.7 app/controllers/dorsale/application_controller.rb
dorsale-3.14.6 app/controllers/dorsale/application_controller.rb
dorsale-3.14.5 app/controllers/dorsale/application_controller.rb
dorsale-3.14.4 app/controllers/dorsale/application_controller.rb
dorsale-3.14.3 app/controllers/dorsale/application_controller.rb
dorsale-3.14.2 app/controllers/dorsale/application_controller.rb
dorsale-3.14.1 app/controllers/dorsale/application_controller.rb
dorsale-3.14.0 app/controllers/dorsale/application_controller.rb
dorsale-3.13.0 app/controllers/dorsale/application_controller.rb
dorsale-3.12.0 app/controllers/dorsale/application_controller.rb