Skip to content

Commit f43aa07

Browse files
nimmoloclaude
andcommitted
Use explicit multiple: keyword in field#select
Cleaner than extracting from attributes hash. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6e03371 commit f43aa07

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/superform/rails/field.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ def textarea(**attributes)
4545
Components::Textarea.new(field, attributes:)
4646
end
4747

48-
def select(*options, **attributes, &)
49-
# Extract select-specific parameters from attributes
50-
multiple = attributes.delete(:multiple) || false
51-
48+
def select(*options, multiple: false, **attributes, &)
5249
Components::Select.new(
5350
field,
5451
attributes:,

0 commit comments

Comments
 (0)