Sha256: d8bac2072aadf2fcef295f513403d88b5c0b69b2b204906e29fa12af8f3f6c08
Contents?: true
Size: 609 Bytes
Versions: 11
Compression:
Stored size: 609 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, 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
11 entries across 11 versions & 1 rubygems