Skip to content

Commit

Permalink
account for symbols too
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Oct 15, 2024
1 parent 0ef0ef6 commit 16397de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/app/lib/smart_attributes/attribute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def select_choices(hide_excludable: true)
# and let nils fall through and get caught in validate!
if entry.is_a?(Array)
entry
elsif entry.is_a?(String)
[entry, entry]
elsif entry.is_a?(String) || entry.is_a?(Symbol)
[entry.to_s, entry.to_s]
end
end
end
Expand Down

0 comments on commit 16397de

Please sign in to comment.