Class: Permissify::Generators::RoleGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Permissify::Generators::RoleGenerator
- Defined in:
- lib/generators/permissify/role/role_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_role ⇒ Object
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 |