Skip to content

Commit 4700a88

Browse files
authored
fix: loosen up the default setting attribute by making it not required (#133)
1 parent 71564f1 commit 4700a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/maglev/section/setting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Maglev::Section::Setting
1212
attr_accessor :id, :label, :type, :default, :options
1313

1414
## validations ##
15-
validates :id, :label, :type, :default, 'maglev/presence': true
15+
validates :id, :label, :type, 'maglev/presence': true
1616
validates :type, inclusion: { in: REGISTERED_TYPES }
1717

1818
## methods ##

0 commit comments

Comments
 (0)