Skip to content

Commit 9f59109

Browse files
authored
Merge pull request #181 from joyofrails/fix/default-revision-param
Fix for default revision param
2 parents 1864062 + f14c2cb commit 9f59109

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)