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.6.1 lib/avo/dynamic_router.rb
avo-3.6.0 lib/avo/dynamic_router.rb
avo-3.5.8 lib/avo/dynamic_router.rb
avo-3.5.7 lib/avo/dynamic_router.rb
avo-3.5.6 lib/avo/dynamic_router.rb
avo-3.5.6.beta1 lib/avo/dynamic_router.rb
avo-3.5.5 lib/avo/dynamic_router.rb
avo-3.5.4 lib/avo/dynamic_router.rb
avo-3.5.3 lib/avo/dynamic_router.rb
avo-3.5.2 lib/avo/dynamic_router.rb
avo-3.5.1 lib/avo/dynamic_router.rb
avo-3.5.0 lib/avo/dynamic_router.rb
avo-3.4.4 lib/avo/dynamic_router.rb
avo-3.4.3 lib/avo/dynamic_router.rb
avo-3.4.2 lib/avo/dynamic_router.rb
avo-3.4.1 lib/avo/dynamic_router.rb
avo-3.4.0 lib/avo/dynamic_router.rb
avo-3.3.6 lib/avo/dynamic_router.rb
avo-3.3.5 lib/avo/dynamic_router.rb
avo-3.3.4 lib/avo/dynamic_router.rb