Class: Permissify::Generators::RoleGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_roleObject



6
7
8
9
10
# File 'lib/generators/permissify/role/role_generator.rb', line 6

def generate_role
  copy_file "role.rb", "app/models/role.rb"
  empty_directory "app/models/system_fixtures"
  copy_file "roles.rb", "app/models/system_fixtures/roles.rb"
end