Sha256: 581e85001055f775a2c2a1a575432bb9ce33c2e93a69533eb440086e87549fc7

Contents?: true

Size: 393 Bytes

Versions: 74

Compression:

Stored size: 393 Bytes

Contents

module Avo
  class DynamicRouter
    def self.routes
      Avo::Engine.routes.draw do
        scope "resources", as: "resources" do
          Avo::Resources::ResourceManager.fetch_resources.map do |resource|
            resources resource.route_key do
              member do
                get :preview
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
avo-3.13.7 lib/avo/dynamic_router.rb
avo-3.13.6 lib/avo/dynamic_router.rb
avo-3.13.5 lib/avo/dynamic_router.rb
avo-3.13.4 lib/avo/dynamic_router.rb
avo-3.13.3 lib/avo/dynamic_router.rb
avo-3.13.2 lib/avo/dynamic_router.rb
avo-3.13.1 lib/avo/dynamic_router.rb
avo-3.13.0 lib/avo/dynamic_router.rb
avo-3.12.0 lib/avo/dynamic_router.rb
avo-3.11.10 lib/avo/dynamic_router.rb
avo-3.11.9 lib/avo/dynamic_router.rb
avo-3.11.8 lib/avo/dynamic_router.rb
avo-3.11.7 lib/avo/dynamic_router.rb
avo-3.11.6 lib/avo/dynamic_router.rb
avo-3.11.5 lib/avo/dynamic_router.rb
avo-3.11.4 lib/avo/dynamic_router.rb
avo-3.11.3 lib/avo/dynamic_router.rb
avo-3.11.2 lib/avo/dynamic_router.rb
avo-3.11.1 lib/avo/dynamic_router.rb
avo-3.11.0 lib/avo/dynamic_router.rb