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.2.30 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.29 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.28 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.27 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.26 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.25 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.24 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.23 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.22 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.21 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.20 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.19 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.18 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.17 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.16 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.15 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.14 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.13 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.12 templates/addons/pundit/app/controllers/authorized_controller.rb.erb
rails_app_generator-0.2.11 templates/addons/pundit/app/controllers/authorized_controller.rb.erb