Skip to content

Commit

Permalink
Merge pull request #53 from liaden/patch-1
Browse files Browse the repository at this point in the history
Enable previews to work with ViewComponentContrib
  • Loading branch information
allmarkedup authored Nov 18, 2021
2 parents 8669176 + 5335aee commit 4999330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lookbook/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Parser
YARDOC_FILE_PATH = Rails.root.join("tmp/storage/.yardoc").to_s

def initialize(paths)
@paths = paths.map { |p| "#{p}/**/*_preview.rb" }
@paths = paths.map { |p| "#{p}/**/*preview.rb" }
YARD::Registry.yardoc_file = YARDOC_FILE_PATH
end

Expand Down

0 comments on commit 4999330

Please sign in to comment.