lib/lookbook/preview_example.rb in lookbook-0.4.0.beta.2 vs lib/lookbook/preview_example.rb in lookbook-0.4.1
- old
+ new
@@ -19,9 +19,13 @@
def label
lookbook_label.presence || name.titleize
end
+ def display_params
+ @preview.display_params.merge(lookbook_display_params)
+ end
+
def method_source
code_object.source.split("\n")[1..-2].join("\n").strip_heredoc
end
def source_lang