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