Sha256: 1a1e9a01dcedbde6148197e9877152447704b310e45a118437d5836aca627f74
Contents?: true
Size: 375 Bytes
Versions: 11
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2020-2022, by Samuel Williams. prepend Actions on '**/*/index' do |request, path| @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
11 entries across 11 versions & 1 rubygems