Sha256: d3c9f2de1cbfa2df7abea0be5f7ea7d528a19c5aa89a0ee78cc3f67037bfbcf9
Contents?: true
Size: 716 Bytes
Versions: 56
Compression:
Stored size: 716 Bytes
Contents
module Cmor module Contact module Generators class InstallGenerator < Rails::Generators::Base desc 'Generates the intializer' 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_contact.rb' end def generate_routes route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source')) end end end end end
Version data entries
56 entries across 56 versions & 1 rubygems