Skip to content

Instantly share code, notes, and snippets.

@ecomba
Last active December 15, 2015 07:59
Show Gist options
  • Save ecomba/5227410 to your computer and use it in GitHub Desktop.
Save ecomba/5227410 to your computer and use it in GitHub Desktop.
Dir.glob("#{File.dirname(__FILE__) + '/../../posts/*.yml'}") do |file|
post = Post.load_from_file(file)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment