lib/lookbook/preview_collection.rb in lookbook-0.9.8 vs lib/lookbook/preview_collection.rb in lookbook-1.0.0.beta.0
- old
+ new
@@ -2,11 +2,19 @@
class PreviewCollection < Collection
def id
generate_id("preview-collection", lookup_path || "root")
end
+ def label
+ "Previews"
+ end
+
def find_example(path)
Lookbook::PreviewExample.all.find { |e| e.lookup_path == path }
+ end
+
+ def type
+ :preview_collection
end
def self.describe_as
"previews"
end