Sha256: a0ddc31db2cd8e74f1ed7e980ccb3df0260c9b57eea6d514ea61bdc5e71e0fa9

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

class Vulgata::InstallGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  source_root File.expand_path('../templates', __FILE__)
  require 'rails/generators/migration'

  def create_initializer_file
    template 'initializer.rb', 'config/initializers/vulgata.rb'
  end

  def create_application_controller_file
    template 'application_controller.rb', 'app/controllers/vulgata/application_controller.rb'
  end

  def copy_migrations
    require 'rake'
    Rails.application.load_tasks
    Rake::Task['vulgata:install:migrations'].invoke
    route "mount Vulgata::Engine, at: '/vulgata'"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vulgata-0.3.7 lib/generators/vulgata/install_generator.rb
vulgata-0.3.6 lib/generators/vulgata/install_generator.rb
vulgata-0.3.5 lib/generators/vulgata/install_generator.rb
vulgata-0.3.4 lib/generators/vulgata/install_generator.rb
vulgata-0.3.3 lib/generators/vulgata/install_generator.rb
vulgata-0.3.1 lib/generators/vulgata/install_generator.rb