Commit 66e8908551880db7cfc6420593414f4aa5060c5e

Authored by Larissa Reis
1 parent d74cb53f

change message for error in select field without alternatives

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
... ...