Class: PolicyGenerator::Generators::ScaffoldGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- PolicyGenerator::Generators::ScaffoldGenerator
- Defined in:
- lib/generators/policy_generator/scaffold/scaffold_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_policy ⇒ Object
6 7 8 |
# File 'lib/generators/policy_generator/scaffold/scaffold_generator.rb', line 6 def create_policy template "policy.rb", File.join("app/policies", class_path, "#{file_name}_policy.rb") end |