Commit 66e8908551880db7cfc6420593414f4aa5060c5e
1 parent
d74cb53f
Exists in
master
and in
28 other branches
change message for error in select field without alternatives
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/custom_forms/lib/custom_forms_plugin/select_field.rb
... | ... | @@ -4,5 +4,5 @@ class CustomFormsPlugin::SelectField < CustomFormsPlugin::Field |
4 | 4 | validates_length_of :select_field_type, :minimum => 1, :allow_nil => false |
5 | 5 | validates_inclusion_of :select_field_type, :in => %w(radio check_box select multiple_select) |
6 | 6 | |
7 | - validates_length_of :alternatives, :minimum => 1 | |
7 | + validates_length_of :alternatives, :minimum => 1, :message => 'can\'t be empty' | |
8 | 8 | end | ... | ... |