lib/generators/administrate/install/install_generator.rb in administrate-0.18.0 vs lib/generators/administrate/install/install_generator.rb in administrate-0.19.0
- old
+ new
@@ -12,10 +12,15 @@
module Generators
class InstallGenerator < Rails::Generators::Base
include Administrate::GeneratorHelpers
source_root File.expand_path("../templates", __FILE__)
- class_option :namespace, type: :string, default: "admin"
+ class_option(
+ :namespace,
+ type: :string,
+ desc: "Namespace where the admin dashboards will live",
+ default: "admin",
+ )
def run_routes_generator
if dashboard_resources.none?
call_generator("administrate:routes", "--namespace", namespace)
Rails.application.reload_routes!