Class: Permissify::Generators::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/permissify/views/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_viewsObject



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