Fix typo desination -> destination
This commit is contained in:
parent
c730af108c
commit
d08b825607
|
@ -20,11 +20,11 @@ module Middleman::CoreExtensions::Builder
|
||||||
self.class.build_reroute(&block)
|
self.class.build_reroute(&block)
|
||||||
end
|
end
|
||||||
|
|
||||||
def reroute_builder(desination, request_path)
|
def reroute_builder(destination, request_path)
|
||||||
result = [desination, request_path]
|
result = [destination, request_path]
|
||||||
|
|
||||||
build_reroute.each do |block|
|
build_reroute.each do |block|
|
||||||
output = instance_exec(desination, request_path, &block)
|
output = instance_exec(destination, request_path, &block)
|
||||||
if output
|
if output
|
||||||
result = output
|
result = output
|
||||||
break
|
break
|
||||||
|
@ -34,4 +34,4 @@ module Middleman::CoreExtensions::Builder
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue