Class: Yes::Auth::Generators::Principals::WriteResourceAccessGenerator

Inherits:
BaseGenerator
  • Object
show all
Defined in:
lib/yes/auth/generators/principals/write_resource_access_generator.rb

Overview

Generates the migration for the write resource access principals table

Examples:

rails generate yes:auth:principals:write_resource_access

Instance Method Summary collapse

Methods inherited from BaseGenerator

#_destination, #_migration_dir, #_migration_file_name, #create, next_migration_number

Instance Method Details

#_source_templateObject



23
24
25
# File 'lib/yes/auth/generators/principals/write_resource_access_generator.rb', line 23

def _source_template
  'write_resource_access.erb'
end

#_table_nameObject



19
20
21
# File 'lib/yes/auth/generators/principals/write_resource_access_generator.rb', line 19

def _table_name
  Yes::Auth::Principals::WriteResourceAccess.table_name
end