Class: Permissify::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Permissify::Generators::ViewsGenerator
- Defined in:
- lib/generators/permissify/views/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_views ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/permissify/views/views_generator.rb', line 6 def generate_views copy_file "permissions_helper.rb", "app/helpers/permissions_helper.rb" copy_file "roles_helper.rb", "app/helpers/roles_helper.rb" directory "permissions", "app/views/permissions" directory "roles", "app/views/roles" end |