Sha256: 38e3e3c7eb3d0e69f0bd6c996387522b8975eab2fdfce1baac3b7097c6b9f0f9
Contents?: true
Size: 606 Bytes
Versions: 110
Compression:
Stored size: 606 Bytes
Contents
require_relative "base_generator" module Generators module Avo class InstallGenerator < BaseGenerator 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, at: Avo.configuration.root_path" template "initializer/avo.tt", "config/initializers/avo.rb" directory File.join(__dir__, "templates", "locales"), "config/locales" end end end end
Version data entries
110 entries across 110 versions & 1 rubygems