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 ||= []
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue