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:
parent
34d399f580
commit
63b53077ff
|
@ -121,9 +121,9 @@ module Middleman
|
||||||
self.defined_helpers ||= []
|
self.defined_helpers ||= []
|
||||||
|
|
||||||
if block
|
if block
|
||||||
m = Module.new
|
mod = Module.new
|
||||||
m.module_eval(&block)
|
mod.module_eval(&block)
|
||||||
mod = [m]
|
m = [mod]
|
||||||
end
|
end
|
||||||
|
|
||||||
self.defined_helpers += m
|
self.defined_helpers += m
|
||||||
|
|
Loading…
Reference in a new issue