Sha256: 260a852dbd5c14e0fcf9a1b72190bf48d125c1d74477c2b6dfa8edb158fae57e
Contents?: true
Size: 551 Bytes
Versions: 37
Compression:
Stored size: 551 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 < 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
37 entries across 37 versions & 1 rubygems