Sha256: a1671f29d0c04b6ce0ae8a63922330e97600d9ae95396172ef9a220910d39cbd
Contents?: true
Size: 570 Bytes
Versions: 53
Compression:
Stored size: 570 Bytes
Contents
# frozen_string_literal: true module RailsAppGenerator # Custom add-ons for RailsAppGenerator module AddOns # Add Pundit - Pundit provides a set of helpers which guide you in # leveraging regular Ruby classes and object oriented design patterns # to build a simple, robust and scalable authorization system. class Pundit < RailsAppGenerator::Addon def apply directory 'app/policies', 'app/policies' template 'app/controllers/authorized_controller.rb.erb', 'app/controllers/authorized_controller.rb' end end end end
Version data entries
53 entries across 53 versions & 1 rubygems