module Secondbureau class MountRailsInfoGenerator < Rails::Generators::Base def mount_sextant_route rails_info_route = "\tmount_rails_info if Rails.env.development?\n" inject_into_file 'config/routes.rb', rails_info_route, :after => "Application.routes.draw do\n" end end end