lib/lookbook/preview_group.rb in lookbook-0.4.4 vs lib/lookbook/preview_group.rb in lookbook-0.4.5
- old
+ new
@@ -9,11 +9,11 @@
@preview = preview
@examples = examples
end
def id
- path.underscore.tr("_", "-")
+ path.underscore.tr("/", "-").tr("_", "-")
end
def path
"#{@preview.lookbook_path}/#{name}"
end
@@ -22,9 +22,13 @@
name.titleize
end
def type
:group
+ end
+
+ def params
+ []
end
def hidden?
false
end