Sha256: fa4ce9e62f3b4baf7b48fc942e9f0bf765dc59cfea08e169df818e3aedbe919a
Contents?: true
Size: 692 Bytes
Versions: 18
Compression:
Stored size: 692 Bytes
Contents
# frozen_string_literal: true module Cmor::Seo module Generators class InstallGenerator < Rails::Generators::Base desc "Generates the initializer" source_root File.expand_path("../templates", __FILE__) attr_reader :base_controller_class_name def initialize(*args) super @base_controller_class_name = ENV.fetch("BASE_CONTROLLER_CLASS_NAME") { "::ApplicationController" } end def generate_initializer template "initializer.rb", "config/initializers/cmor_seo.rb" end def generate_routes route File.read(File.join(File.expand_path("../templates", __FILE__), "routes.source")) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems