Skip to content

Commit 7a285ef

Browse files
committed
Fix config example
1 parent 1fc4e64 commit 7a285ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,15 +1957,15 @@ JSONAPI.configure do |config|
19571957
# Relationship reflection invokes the related resource when updates
19581958
# are made to a has_many relationship. By default relationship_reflection
19591959
# is turned off because it imposes a small performance penalty.
1960-
self.use_relationship_reflection = false
1960+
config.use_relationship_reflection = false
19611961

19621962
# Allows transactions for creating and updating records
19631963
# Set this to false if your backend does not support transactions (e.g. Mongodb)
1964-
self.allow_transactions = true
1964+
config.allow_transactions = true
19651965

19661966
# Formatter Caching
19671967
# Set to false to disable caching of string operations on keys and links.
1968-
self.cache_formatters = true
1968+
config.cache_formatters = true
19691969
end
19701970
```
19711971

0 commit comments

Comments
 (0)