Sha256: 56178f9250520731c998b080aa5ff3917290d8f9fc373e25335493c8ad73edd4
Contents?: true
Size: 595 Bytes
Versions: 5
Compression:
Stored size: 595 Bytes
Contents
require 'rails/generators' module Generators module Avo 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/avo.rb', 'config/initializers/avo.rb' template 'locales/avo.en.yml', 'config/locales/avo.en.yml' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems