Skip to content

Commit

Permalink
Do this
Browse files Browse the repository at this point in the history
  • Loading branch information
will89 committed Sep 6, 2024
1 parent 3d38047 commit 16b01ba
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<%
parent_record = @record
associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name).to_a
associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order)
if show_blank_record = column.show_blank_record?(associated)
associated << build_associated(column, parent_record)
end
Expand Down

0 comments on commit 16b01ba

Please sign in to comment.