Sha256: e308823b40f0f7e990a0faf19f6589e03907e0711566f594f2c48acd4ab49ba9
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
require 'rails/generators/migration' require 'generators/log_book/migration' require 'log_book' module LogBook module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration extend LogBook::Generators::Migration source_root File.expand_path('../templates', __FILE__) def copy_initalizer copy_file 'initializer.rb', 'config/initializers/log_book.rb' end def copy_migration migration_template 'install.rb', 'db/migrate/install_log_book.rb' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems