Skip to content

Commit 35d5057

Browse files
committed
Do not use extra dup on error class.
1 parent 4c10d27 commit 35d5057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/simple_form/wrappers/many.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def html_options(options)
6868

6969
def html_classes(input, options)
7070
css = @defaults[:class].dup
71-
css << @defaults[:error_class].dup { input.has_errors? }
71+
css << @defaults[:error_class] if input.has_errors?
7272
css.compact
7373
end
7474
end

0 commit comments

Comments
 (0)