Sha256: e2cfa0aace6c949f1d5b138baa51ce147d7b3d3643bd495b9693bb2c7491274f
Contents?: true
Size: 364 Bytes
Versions: 9
Compression:
Stored size: 364 Bytes
Contents
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
9 entries across 9 versions & 1 rubygems