Sha256: 3df758913883e17d8f827c73b5f25ac8b799e06339bc8c9feae528b98d7f96fb

Contents?: true

Size: 242 Bytes

Versions: 113

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

class AuthorizedController < ApplicationController
  include Pundit

  before_action :authenticate_user!

  after_action :verify_authorized, except: :index
  after_action :verify_policy_scoped, only: :index
end

Version data entries

113 entries across 92 versions & 2 rubygems

Version Path
rails_app_generator-0.3.6 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.3.5 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.3.4 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.3.3 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.3.2 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.3.1 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.3.0 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.43 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.42 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.41 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.40 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.39 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.38 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.37 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.36 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.35 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.34 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.33 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.32 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.31 templates/addons/pundit/app/controllers/authorized_controller.rb.erb