We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eacb45a + 6ac4927 commit 192ccfbCopy full SHA for 192ccfb
docs/CHANGELOG.md
@@ -10,6 +10,10 @@ nav_order: 6
10
11
## main
12
13
+* Replace deprecated `require_dependency` with `require` in preview loading.
14
+
15
+ *GitHub Copilot*
16
17
* Return `html_safe` empty string from `render_in` when `render?` is false.
18
19
*Copilot*
lib/view_component/preview.rb
@@ -95,7 +95,7 @@ def preview_example_template_path(example)
95
# @private
96
def __vc_load_previews
97
Array(preview_paths).each do |preview_path|
98
- Dir["#{preview_path}/**/*preview.rb"].sort.each { |file| require_dependency file }
+ Dir["#{preview_path}/**/*preview.rb"].sort.each { |file| require file }
99
end
100
101
0 commit comments