Weird block scoping issue in old Ruby

This commit is contained in:
Thomas Reynolds 2012-05-28 14:09:43 -07:00
parent 51e1de54f6
commit b02ee61639

View file

@ -127,8 +127,8 @@ module Middleman
app.data.store("page", md[:page])
end
md[:blocks].each do |block|
app.instance_eval(&block)
md[:blocks].each do |aBlock|
app.instance_eval(&aBlock)
end
app.instance_eval(&block) if block_given?