From 1c403313f44fc40e3429791efdbfea0141f178d7 Mon Sep 17 00:00:00 2001 From: Genar Trias Ortiz Date: Mon, 21 Oct 2024 22:55:15 +0200 Subject: [PATCH] link documentation to the example --- README.md | 2 +- examples/sinatra-pet-shelter/lib/resources/dogs.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3fbc7d9..8ec19e7 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ And run `bundle install` ## Setting up your first resources -TODO +- [Check this project to see an example Sinatra based app using Resource Registry](examples/sinatra-pet-shelter) ## Similar projects diff --git a/examples/sinatra-pet-shelter/lib/resources/dogs.rb b/examples/sinatra-pet-shelter/lib/resources/dogs.rb index 71a2917..4b84c29 100644 --- a/examples/sinatra-pet-shelter/lib/resources/dogs.rb +++ b/examples/sinatra-pet-shelter/lib/resources/dogs.rb @@ -17,6 +17,5 @@ class Dogs < Repository # FIXME: Review `context` sig { override.params(dto: ReadDto, context: T.untyped).returns(T::Array[Dog]) } - def read(dto:, context:) - end + def read(dto:, context:); end end