Class: Kakimasu::Generators::PolicyGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Kakimasu::Generators::PolicyGenerator
- Defined in:
- lib/generators/kakimasu/policy_generator.rb
Instance Method Summary collapse
-
#copy_policies ⇒ Object
Copy policies for ability to edit them.
Instance Method Details
#copy_policies ⇒ Object
Copy policies for ability to edit them
9 10 11 12 13 14 15 |
# File 'lib/generators/kakimasu/policy_generator.rb', line 9 def copy_policies copy_file 'translation_policy.rb', 'app/policies/translations_policy.rb' puts '' puts '***********************************' puts 'Policies was successfully generated!' # Success message puts '***********************************' end |