Sha256: 50890bacfec09d382100cc9ae0d42c912c2e8342d9e51e74f67df2c8d8fb4e27
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cmor_seo-0.0.40.pre | lib/generators/cmor/seo/install/install_generator.rb |