Skip to content

Commit

Permalink
monkey patch jekyll/jekyll#6338 backport
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Sep 5, 2017
1 parent 6f63488 commit fe0e7df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/jekyll-github-metadata/metadata_drop.rb
Expand Up @@ -10,6 +10,13 @@ class MetadataDrop < Jekyll::Drops::Drop

# See https://github.com/jekyll/jekyll/pull/6338
alias_method :invoke_drop, :[]
def key?(key)
if self.class.mutable?
@mutations.key?(key)
else
!key.nil? && (respond_to?(key) || fallback_data.key?(key))
end
end

def to_s
require "json"
Expand Down

0 comments on commit fe0e7df

Please sign in to comment.