Sha256: 7e0cd684e57f320a8d825ed464067e8ba6f1878edbd0c2b7db894dd76903a7e0
Contents?: true
Size: 515 Bytes
Versions: 14
Compression:
Stored size: 515 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/avo.rb', 'config/initializers/avo.rb' template 'locales/avo.en.yml', 'config/locales/avo.en.yml' end end
Version data entries
14 entries across 14 versions & 1 rubygems