Sha256: 68c0d68bc3d0123d0777deb0a01af9e819aea518db26ef65e6363771f301017a

Contents?: true

Size: 388 Bytes

Versions: 14

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Arclight
  module Routes
    # Inject a hierarchy route for displaying the
    # components in the collection context
    class Hierarchy
      def initialize(defaults = {})
        @defaults = defaults
      end

      def call(mapper, _options = {})
        mapper.member do
          mapper.get 'hierarchy'
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
arclight-1.4.0 lib/arclight/routes/hierarchy.rb
arclight-1.3.0 lib/arclight/routes/hierarchy.rb
arclight-1.2.0 lib/arclight/routes/hierarchy.rb
arclight-1.1.3 lib/arclight/routes/hierarchy.rb
arclight-1.1.2 lib/arclight/routes/hierarchy.rb
arclight-1.1.1 lib/arclight/routes/hierarchy.rb
arclight-1.1.0 lib/arclight/routes/hierarchy.rb
arclight-1.0.1 lib/arclight/routes/hierarchy.rb
arclight-1.0.0 lib/arclight/routes/hierarchy.rb
arclight-1.0.0.beta6 lib/arclight/routes/hierarchy.rb
arclight-1.0.0.beta4 lib/arclight/routes/hierarchy.rb
arclight-1.0.0.beta3 lib/arclight/routes/hierarchy.rb
arclight-1.0.0.beta2 lib/arclight/routes/hierarchy.rb
arclight-1.0.0.beta1 lib/arclight/routes/hierarchy.rb