Sha256: 79244578a9b518a9ab611b331f1b40fd8f47859fe6aa6894c270821710f5ac8d
Contents?: true
Size: 830 Bytes
Versions: 49
Compression:
Stored size: 830 Bytes
Contents
module Cmor module Core module Frontend module Generators class InstallGenerator < Rails::Generators::Base desc 'Installs the initializer, routes and itsf_backend integration' source_root File.expand_path('../templates', __FILE__) attr_reader :base_controller_class_name def initialize(*args) super @base_controller_class_name = ENV.fetch('CMOR_CORE_FRONTEND_BASE_CONTROLLER_CLASS_NAME') { '::ApplicationController' } end def generate_controller copy_file 'frontend_controller.rb', 'app/controllers/frontend_controller.rb' end def generate_initializer template 'initializer.rb', 'config/initializers/cmor_core_frontend.rb' end end end end end end
Version data entries
49 entries across 49 versions & 1 rubygems