Sha256: 98a3a480dd4b1088581b4d19c848416510d4313d63410885983fb0d6752098ed

Contents?: true

Size: 454 Bytes

Versions: 7

Compression:

Stored size: 454 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 model
    raise NotImplementedError
  end

  helper_method :model

  def scope
    policy_scope(model)
  end

  helper_method :scope

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dorsale-3.7.1 app/controllers/dorsale/application_controller.rb
dorsale-3.7.0 app/controllers/dorsale/application_controller.rb
dorsale-3.6.1 app/controllers/dorsale/application_controller.rb
dorsale-3.6.0 app/controllers/dorsale/application_controller.rb
dorsale-3.5.2 app/controllers/dorsale/application_controller.rb
dorsale-3.5.1 app/controllers/dorsale/application_controller.rb
dorsale-3.5.0 app/controllers/dorsale/application_controller.rb