lib/generators/scrivito/widget/widget_generator.rb in scrivito_sdk-1.17.0 vs lib/generators/scrivito/widget/widget_generator.rb in scrivito_sdk-1.18.0.rc1

- old
+ new

@@ -2,10 +2,10 @@ module Generators class WidgetGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) argument :name, type: :string - argument :attributes, type: :array, default: [], banner: 'attribute:type attribute:type' + argument :attrs, type: :array, default: [], banner: 'attribute:type attribute:type' def create_model template 'model.erb', "app/models/#{file_name}.rb" end