app/components/lookbook/embed/component.rb in lookbook-1.0.0.beta.5 vs app/components/lookbook/embed/component.rb in lookbook-1.0.0.beta.6
- old
+ new
@@ -9,9 +9,17 @@
super(**html_attrs)
end
protected
+ def lookbook_inspect_path(*args)
+ Lookbook::Engine.routes.url_helpers.lookbook_inspect_path(*args)
+ end
+
+ def lookbook_preview_path(*args)
+ Lookbook::Engine.routes.url_helpers.lookbook_preview_path(*args)
+ end
+
def alpine_data
[@id.to_json, "$store.pages.embeds"].join(",")
end
def alpine_component