class BlacklightDynamicSitemap::Install

Public Instance Methods

add_routes() click to toggle source
# File lib/generators/blacklight_dynamic_sitemap/install_generator.rb, line 7
def add_routes
  inject_into_file 'config/routes.rb', after: "mount Blacklight::Engine => '/'" do
    "\n  mount BlacklightDynamicSitemap::Engine => '/'\n"
  end
end
install_webpacker() click to toggle source
# File lib/generators/blacklight_dynamic_sitemap/install_generator.rb, line 13
def install_webpacker
  return unless Rails.version.to_i == 6

  rake 'webpacker:install'
end