Sha256: a882595f9505a47fcedae1a46e691e046315d65aef326df42d8def57830ddb94
Contents?: true
Size: 612 Bytes
Versions: 232
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' require 'rails/generators/migration' require 'active_record' require 'rails/generators/active_record' require 'generators/motor/migration' module Motor module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration extend Motor::Generators::Migration source_root File.expand_path('templates', __dir__) def copy_migration migration_template 'install.rb', 'db/migrate/install_motor_admin.rb' route "mount Motor::Admin => '/motor_admin'" end end end end
Version data entries
232 entries across 232 versions & 7 rubygems