Skip to content

Commit 178c239

Browse files
committed
Backport some rails 4 activescaffold fixes
activescaffold@e9faeac
1 parent 3d38047 commit 178c239

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/views/active_scaffold_overrides/_form_association.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%
22
parent_record = @record
33
associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name).to_a
4-
associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order)
54
if show_blank_record = column.show_blank_record?(associated)
65
associated << build_associated(column, parent_record)
76
end

0 commit comments

Comments
 (0)