Skip to content

Commit

Permalink
Use data for selected value in select field
Browse files Browse the repository at this point in the history
  • Loading branch information
nhippenmeyer committed Dec 16, 2020
1 parent 975f514 commit cb4a937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/fields/select/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ to be displayed on a resource's edit form page.
field.selectable_options,
:last,
:first,
field.data.presence,
field.data,
)
) %>
<% else %>
Expand All @@ -36,7 +36,7 @@ to be displayed on a resource's edit form page.
field.selectable_options,
:to_s,
:to_s,
field.data.presence,
field.data,
)
) %>
<% end %>
Expand Down

0 comments on commit cb4a937

Please sign in to comment.