Skip to content

Commit eae73f0

Browse files
authored
Fix name_when_new validation message (#170)
1 parent e7dd68b commit eae73f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/presenters/hotwire_combobox/component.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def name_when_new_on_multiselect_must_match_original_name
206206

207207
unless name_when_new.to_s == hidden_field_name
208208
errors.add :name_when_new, :must_match_original_name,
209-
message: "must match the regular name ('#{name}', in this case) on multiselect comboboxes."
209+
message: "must match the regular name ('#{hidden_field_name}', in this case) on multiselect comboboxes."
210210
end
211211
end
212212

0 commit comments

Comments
 (0)