1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
This commit is contained in:
Thomas Reynolds 2018-12-28 14:47:17 -08:00
parent c4de082790
commit ec68fa3075

View file

@ -58,7 +58,7 @@ module Middleman
Contract ArrayOf[Or[Symbol, Num]] => Maybe[DataCollectionPathVertex::DATA_TYPE]
def lookup_path(path)
path.reduce(@controller) do |sum, part|
part === :__full_access__ ? sum : sum[part]
part == :__full_access__ ? sum : sum[part]
end
end