Sha256: 1241ca6ebcccb108e9aaf059ac8a19c918f4ce35f8d1d98c66a9ce9f0be608bc
Contents?: true
Size: 476 Bytes
Versions: 8
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2020-2022, by Samuel Williams. prepend Actions on 'index' do @base = Utopia::Project::Base.instance end on '**/*/index' do |request, path| @base = Utopia::Project::Base.instance @lexical_path = path.components.dup # Remove the last "index" part: @lexical_path.pop @node, @symbol = @base.lookup(@lexical_path) unless @symbol fail! :not_found end path.components = ["show"] end
Version data entries
8 entries across 8 versions & 1 rubygems