lib/lookbook/preview.rb in lookbook-0.3.3 vs lib/lookbook/preview.rb in lookbook-0.3.4
- old
+ new
@@ -78,21 +78,19 @@
defined?(@layout) ? @layout : nil
end
class << self
def all
- ViewComponent::Preview.all
+ ViewComponent::Preview.all.sort_by(&:label)
end
def find(path)
all.find { |p| p.lookbook_path == path }
end
def exists?(path)
!!find(path)
end
-
-
end
private
def taggable_object_path