Class: Yes::Auth::Generators::Principals::RoleGenerator
- Inherits:
-
BaseGenerator
- Object
- Rails::Generators::Base
- BaseGenerator
- Yes::Auth::Generators::Principals::RoleGenerator
- Defined in:
- lib/yes/auth/generators/principals/role_generator.rb
Overview
Generates the migration for the roles principals table
Instance Method Summary collapse
Methods inherited from BaseGenerator
#_destination, #_migration_dir, #_migration_file_name, #create, next_migration_number
Instance Method Details
#_source_template ⇒ Object
23 24 25 |
# File 'lib/yes/auth/generators/principals/role_generator.rb', line 23 def _source_template 'role.erb' end |
#_table_name ⇒ Object
19 20 21 |
# File 'lib/yes/auth/generators/principals/role_generator.rb', line 19 def _table_name Yes::Auth::Principals::Role.table_name end |