Sha256: 1609ff5d1a385327795b56275735998b79803f5229fb3f9965b33da313981778

Contents?: true

Size: 323 Bytes

Versions: 43

Compression:

Stored size: 323 Bytes

Contents

module Releaf::Component
  def resource_route(router, namespace, resource)
    router.namespace :releaf, path: nil do
      if namespace
        router.namespace namespace, path: nil do
          router.releaf_resources(resource)
        end
      else
        router.releaf_resources(resource)
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
releaf-core-3.1.0 lib/releaf/component.rb
releaf-core-3.0.3 lib/releaf/component.rb
releaf-core-3.0.2 lib/releaf/component.rb
releaf-core-3.0.1 lib/releaf/component.rb
releaf-core-3.0.0 lib/releaf/component.rb
releaf-core-2.2.1 lib/releaf/component.rb
releaf-core-2.2.0 lib/releaf/component.rb
releaf-core-2.1.2 lib/releaf/component.rb
releaf-core-2.1.1 lib/releaf/component.rb
releaf-core-2.1.0 lib/releaf/component.rb
releaf-core-2.0.1 lib/releaf/component.rb
releaf-core-2.0.0 lib/releaf/component.rb
releaf-core-1.1.22 lib/releaf/component.rb
releaf-core-1.1.21 lib/releaf/component.rb
releaf-core-1.1.20 lib/releaf/component.rb
releaf-core-1.1.19 lib/releaf/component.rb
releaf-core-1.1.18 lib/releaf/component.rb
releaf-core-1.1.17 lib/releaf/component.rb
releaf-core-1.1.16 lib/releaf/component.rb
releaf-core-1.1.15 lib/releaf/component.rb