Sha256: 3a0ad9103b65d60533644200d6d01abcecc69d9414b922c10fe1500e086102a3
Contents?: true
Size: 448 Bytes
Versions: 8
Compression:
Stored size: 448 Bytes
Contents
require 'rails/generators/base' class InstallGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) namespace 'avo:install' desc 'Creates an Avo initializer adds the route to the routes file.' class_option :path, type: :string, default: 'avo' def create_initializer_file route 'mount Avo::Engine => Avo.configuration.root_path' template 'initializer.rb', 'config/initializers/avo.rb' end end
Version data entries
8 entries across 8 versions & 1 rubygems