Class: Authz::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/authz/install/install_generator.rb

Overview

Rails generator to prepare the library for use

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



7
8
9
# File 'lib/generators/authz/install/install_generator.rb', line 7

def copy_initializer_file
  copy_file 'initializer.rb', 'config/initializers/authz.rb'
end

#copy_migrationsObject



11
12
13
# File 'lib/generators/authz/install/install_generator.rb', line 11

def copy_migrations
  rake('authz:install:migrations')
end