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