Sha256: 366b56343fae955ef612d1ec79dbadd550789a4e574d05183bd9beda6cf9ab32
Contents?: true
Size: 744 Bytes
Versions: 14
Compression:
Stored size: 744 Bytes
Contents
# encoding: UTF-8 module ModelsAuditor class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def descriptions @descriptions ||= YAML.load_file(File.expand_path('../../../../../config/config_option_descriptions.yml', __FILE__)) end def copy_initializer template 'initializer.rb.erb', 'config/initializers/models_auditor.rb' end # def mount_routes # [ # 'Rails.application.routes.draw do', # 'Application.routes.draw do' # ].each do |after_str| # inject_into_file 'config/routes.rb', :after => after_str do # "\n mount GlobalStore::Engine, at: '/global_store'\n" # end # end # end end end
Version data entries
14 entries across 14 versions & 1 rubygems