We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has_key?
1 parent f17cfd2 commit 6edd2baCopy full SHA for 6edd2ba
lib/jekyll-gist/gist_tag.rb
@@ -5,10 +5,10 @@ class GistTag < Liquid::Tag
5
def render(context)
6
if tag_contents = determine_arguments(@markup.strip)
7
gist_id, filename = tag_contents[0], tag_contents[1]
8
- if context[gist_id]
+ if context.has_key?(gist_id)
9
gist_id = context[gist_id]
10
end
11
- if context[filename]
+ if context.has_key?(filename)
12
filename = context[filename]
13
14
gist_script_tag(gist_id, filename)
0 commit comments