Skip to content

Commit be2153c

Browse files
Arjan Scherpenissemichalmuskala
authored andcommitted
Fix README deprecation warning (michalmuskala#67)
Ecto gave a deprecation warning when using the `:json_library` config option: ``` warning: The :json_library configuration for the :ecto application is deprecated. Please configure the :json_library in the driver instead: config :postgrex, :json_library, Jason ```
1 parent cb1f26a commit be2153c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ Then you can use the module, by passing it to `Postgrex.start_link`.
5353
### Ecto
5454

5555
To replicate fully the current behaviour of `Poison` when used in Ecto applications,
56-
you need to configure `Jason` to be the default encoder in `config/config.exs`:
56+
you need to configure `Jason` to be the default encoder of the `postgrex` library, in `config/config.exs`:
5757

5858
```elixir
59-
config :ecto, json_library: Jason
59+
config :postgrex, :json_library, Jason
6060
```
6161

6262
Additionally, when using PostgreSQL, you need to define a custom types module as described

0 commit comments

Comments
 (0)