Class: RailsAdminMap::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rails_admin_map/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#setup_routeObject

desc “Installs RailsAdminMap into your app.”



8
9
10
# File 'lib/generators/rails_admin_map/install/install_generator.rb', line 8

def setup_route
  route "mount RailsAdminMap::Engine => '/rails-admin-map', as: 'admin_map'"
end