Class: PunditRolePlay::Generators::RoleGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PunditRolePlay::Generators::RoleGenerator
- Defined in:
- lib/generators/pundit_role_play/role/role_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_role_file ⇒ Object
11 12 13 14 |
# File 'lib/generators/pundit_role_play/role/role_generator.rb', line 11 def create_role_file # Generate the role file in app/roles template "role.rb", File.join("app/roles", "#{file_name}.rb") end |