diff --git a/lib/wizard/field.rb b/lib/wizard/field.rb index 2ee96dd6..c9bbdd04 100644 --- a/lib/wizard/field.rb +++ b/lib/wizard/field.rb @@ -10,15 +10,12 @@ module CustomWizardFieldExtension :content def initialize(attrs) + super @attrs = attrs || {} - @id = attrs[:id] - @type = attrs[:type] - @required = !!attrs[:required] @description = attrs[:description] @image = attrs[:image] @key = attrs[:key] @min_length = attrs[:min_length] - @value = attrs[:value] @file_types = attrs[:file_types] @limit = attrs[:limit] @property = attrs[:property]