Class: Secondbureau::MountRailsInfoGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/secondbureau/mount_rails_info_generator.rb

Instance Method Summary collapse

Instance Method Details

#mount_sextant_routeObject



4
5
6
7
# File 'lib/generators/secondbureau/mount_rails_info_generator.rb', line 4

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