Commit fde04c8897295d73bc83e5bf96bade41620fbfcf
Committed by
Larissa Reis
1 parent
18cc9a00
Exists in
master
and in
22 other branches
custom-forms: remove unnecessary length validation of select_field
Showing
1 changed file
with
0 additions
and
3 deletions
Show diff stats
plugins/custom_forms/lib/custom_forms_plugin/select_field.rb
| 1 | 1 | class CustomFormsPlugin::SelectField < CustomFormsPlugin::Field |
| 2 | 2 | set_table_name :custom_forms_plugin_fields |
| 3 | - | |
| 4 | - validates_length_of :select_field_type, :minimum => 1, :allow_nil => false | |
| 5 | 3 | validates_inclusion_of :select_field_type, :in => %w(radio check_box select multiple_select) |
| 6 | - | |
| 7 | 4 | validates_length_of :alternatives, :minimum => 1, :message => 'can\'t be empty' |
| 8 | 5 | end | ... | ... |