Class: Schienenzeppelin::AddOns::Pundit
- Inherits:
-
Schienenzeppelin::AddOn
- Object
- Rails::Generators::Base
- Schienenzeppelin::AddOn
- Schienenzeppelin::AddOns::Pundit
- Defined in:
- lib/schienenzeppelin/addons/pundit.rb
Instance Attribute Summary
Attributes inherited from Schienenzeppelin::AddOn
Instance Method Summary collapse
Methods inherited from Schienenzeppelin::AddOn
apply, default_source_root, dependencies, get, identifier, #initialize
Constructor Details
This class inherits a constructor from Schienenzeppelin::AddOn
Instance Method Details
#apply ⇒ Object
6 7 8 9 |
# File 'lib/schienenzeppelin/addons/pundit.rb', line 6 def apply directory 'app/policies', 'app/policies' template 'app/controllers/authorized_controller.rb.erb', 'app/controllers/authorized_controller.rb' end |