Sha256: a3c275aa5ca9a5f58ff5519bc502223c524c6e592b91c433021e0eca4f22282d
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
module Jlog class InstallGenerator < Rails::Generators::Base desc "Install Jlog engine" def mount_engine puts "Mounting Jlog engine at /jlog in config/routes.rb" insert_into_file("config/routes.rb", :after => /routes\.draw\sdo\n/) do %Q{\n mount Jlog::Engine, at: '/jlog'\n} end end def include_js_file append_to_file 'app/assets/javascripts/application.js' do %Q{\n//\n//= require jlog} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems