From ca68d3cec38720a363c6964e5ef83cae2a42fb21 Mon Sep 17 00:00:00 2001 From: mattkhan Date: Sun, 18 Aug 2024 09:52:12 -0700 Subject: [PATCH] docs: fix code links --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9e6b3f1..3fdbd7c 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,10 @@ types defined in `Anchor::Types`, see [Annotations](#annotations). This gem provides TypeScript and JSON Schema generators with `Anchor::TypeScript::SchemaGenerator` and `Anchor::JSONSchema::SchemaGenerator`. -See the [example](./example) Rails app for a fully functional example using -`Anchor`. See [schema_test.rb](./example/test/models/schema_test.rb) for -`Schema` generation examples. +See the [example](./spec/example) Rails app for a fully functional example using +`Anchor`. See +[example_schema_snapshot_spec.rb](./spec/anchor/example_schema_snapshot_spec.rb) +for `Schema` generation examples. ## Inference @@ -33,7 +34,7 @@ then mapped to an `Anchor::Type` in `Anchor::Types::Inference::ActiveRecord::SQL.from`. - `Anchor.config.ar_column_to_type` allows custom mappings, see - [example/initializers/anchor.rb](./examples/initializers/anchor.rb) + [spec/example/config/initializers/anchor.rb](./spec/example/config/initializers/anchor.rb) - `Anchor.config.use_active_record_presence` can be set to `true` to infer nullable attributes (i.e. fields that do not specify `null: false` in schema.rb) as non-null when an unconditional