lib/administrate/view_generator.rb in administrate-0.18.0 vs lib/administrate/view_generator.rb in administrate-0.19.0
- old
+ new
@@ -3,10 +3,15 @@
require "administrate/namespace"
module Administrate
class ViewGenerator < Rails::Generators::Base
include Administrate::GeneratorHelpers
- class_option :namespace, type: :string, default: :admin
+ class_option(
+ :namespace,
+ type: :string,
+ desc: "Namespace where the admin dashboards live",
+ default: "admin",
+ )
def self.template_source_path
File.expand_path(
"../../../app/views/administrate/application",
__FILE__,