In a couple of commits we're going to add some styles for this form, and it's easier to know where to add these styles when there's a component.
10 lines
277 B
Ruby
10 lines
277 B
Ruby
module OfficingHelper
|
|
def booths_for_officer_select_options(officer_assignments)
|
|
options = officer_assignments.map do |oa|
|
|
[oa.booth_assignment.booth.name.to_s, oa.id]
|
|
end
|
|
options.sort_by! { |x| x[0] }
|
|
options_for_select(options, params[:oa])
|
|
end
|
|
end
|