Commit b4d8e691 authored by azul's avatar azul

Merge branch 'fix-comparison-with-nil' into 'master'

Fix comparison with nil

Closes #304

See merge request !297
parents 441b6898 855387f6
......@@ -119,7 +119,7 @@ class Asset < ApplicationRecord
dependent: :destroy do
def preview_images
select { |t| %w[small medium large].include?(t.name) }.
sort_by(&:size).uniq(&:size)
sort_by(&:name).reverse.uniq(&:size)
end
def other_formats
......
%div.debug
.p
%h3 Stylesheets
%ul
- optional_stylesheets.each do |style|
%li= link_to "#{style}.css", current_theme.stylesheet_url(style), target: '_blank'
%li
= link_to 'screen.css', current_theme.stylesheet_url('screen'), target: '_blank'
= link_to '(refresh)', current_theme.stylesheet_url('screen_refresh'), target: '_blank'
#debug_history.p
%script
-# $('debug_history').update(JSON.stringify({url:History.getState().url, data:History.getState().data}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment