Skip to content

Commit f14c2cb

Browse files
committed
Fix for default revision param
1 parent 1864062 commit f14c2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/components/code_block/app_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class CodeBlock::AppFile < Phlex::HTML
33

44
# @param filename [String] the file path or an Examples::AppFile.
55
# @param file [String] the file path or an Examples::AppFile.
6-
def initialize(filename, lines: nil, revision: nil, **attributes)
6+
def initialize(filename, lines: nil, revision: "HEAD", **attributes)
77
@app_file = Examples::AppFile.from(filename, revision: revision)
88
@lines = lines
99
@attributes = attributes

0 commit comments

Comments
 (0)