Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fetch method to Drops #5056

Merged
merged 2 commits into from Jul 7, 2016
Merged

Add fetch method to Drops #5056

merged 2 commits into from Jul 7, 2016

Conversation

ayastreb
Copy link
Contributor

@ayastreb ayastreb commented Jul 5, 2016

Fixes #4615

As pointed out by @parkr - added fetch method to Drops::Drop class.

@@ -199,6 +199,10 @@ def merge!(other)
end
end
end

def fetch(*args, &block)
to_h.fetch(*args, &block)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#to_h is an expensive operation. Could we mimic the behaviour without having to actually create a hash?

@parkr
Copy link
Member

parkr commented Jul 7, 2016

This LGTM. @jekyll/core?

@envygeeks
Copy link
Contributor

:shipit:

@parkr
Copy link
Member

parkr commented Jul 7, 2016

Thanks @envygeeks :)

@jekyllbot: merge +minor

@jekyllbot jekyllbot merged commit 08b279c into jekyll:master Jul 7, 2016
jekyllbot added a commit that referenced this pull request Jul 7, 2016
stevecheckoway pushed a commit to stevecheckoway/jekyll that referenced this pull request Jul 24, 2016
@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Drops::DocumentDrop page object doesn't support .fetch() method
4 participants