module Releaf::Component

Public Instance Methods

resource_route(router, namespace, resource) click to toggle source
# File lib/releaf/component.rb, line 2
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