use the id of the joined table to prevent breaking when an invalid id is joined with

pull/6667/head
Jens Ulferts 6 years ago
parent ffd31b8961
commit 3180a5c21f
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      app/views/highlighting/styles.css.erb

@ -1,6 +1,6 @@
<%
colored_resource = Proc.new do |name, scope|
scope.where.not(color_id: nil).includes(:color).find_each do |entry|
scope.where.not(colors: { id: nil }).includes(:color).find_each do |entry|
color = entry.color
styles = color.color_styles

Loading…
Cancel
Save