From 1f10a9e4f34c86b21b69c188da64b289b7949ab3 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Wed, 29 Apr 2020 12:28:57 +1000 Subject: [PATCH] Property extend wizard field class --- lib/wizard/field.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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]