lib/generators/adminpanel/resource/resource_generator.rb in adminpanel-2.2.2 vs lib/generators/adminpanel/resource/resource_generator.rb in adminpanel-2.2.3
- old
+ new
@@ -4,14 +4,13 @@
module Adminpanel
class ResourceGenerator < ActiveRecord::Generators::Base
include ResourceGeneratorHelper
source_root File.expand_path('../templates', __FILE__)
desc 'Generate the resource files necessary to use a model'
- class_option :'gallery',
+ class_option :'skip-gallery',
:type => :boolean,
- :aliases => '-g',
:default => true,
- :desc => 'Creates the gallery for this resource'
+ :desc => 'Choose if we shoud create the gallery for this resource, default: true (skip gallery )'
argument :fields, :type => :array, :default => [], :banner => 'field[:type][:index] field[:type][:index]'
def change_fields_aliases
fields.each do |attribute|