Oops had not meant to commit this yet. Anyway, it makes the "helpers" method on Extension able to take a module directly instead of just a block.

This commit is contained in:
Ben Hollis 2013-11-25 01:10:10 -08:00
parent 34d399f580
commit 63b53077ff

View file

@ -121,9 +121,9 @@ module Middleman
self.defined_helpers ||= []
if block
m = Module.new
m.module_eval(&block)
mod = [m]
mod = Module.new
mod.module_eval(&block)
m = [mod]
end
self.defined_helpers += m