Skip to content

Commit c606773

Browse files
committed
Merge pull request #6 from pathawks/variable_params
Merge pull request 6
2 parents 024f580 + 6edd2ba commit c606773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jekyll-gist/gist_tag.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ class GistTag < Liquid::Tag
55
def render(context)
66
if tag_contents = determine_arguments(@markup.strip)
77
gist_id, filename = tag_contents[0], tag_contents[1]
8-
if context[gist_id]
8+
if context.has_key?(gist_id)
99
gist_id = context[gist_id]
1010
end
11-
if context[filename]
11+
if context.has_key?(filename)
1212
filename = context[filename]
1313
end
1414
gist_script_tag(gist_id, filename)

0 commit comments

Comments
 (0)