Class: Arturo::RoutesGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_mountObject



7
8
9
10
11
12
13
# File 'lib/generators/arturo/routes_generator.rb', line 7

def add_mount
  if Arturo::Engine.respond_to?(:routes)
    route "mount Arturo::Engine => ''"
  else
    puts "This version of Rails doesn't support Engine-specific routing. Nothing to do."
  end
end