Skip to content

Commit 2a43caf

Browse files
committed
Add allow_transactions and cache_formatters to config section.
1 parent f92c89a commit 2a43caf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,6 +1928,14 @@ JSONAPI.configure do |config|
19281928
# Controls the serialization of resource linkage for non compound documents
19291929
# NOTE: always_include_to_many_linkage_data is not currently implemented
19301930
config.always_include_to_one_linkage_data = false
1931+
1932+
# Allows transactions for creating and updating records
1933+
# Set this to false if your backend does not support transactions (e.g. Mongodb)
1934+
self.allow_transactions = true
1935+
1936+
# Formatter Caching
1937+
# Set to false to disable caching of string operations on keys and links.
1938+
self.cache_formatters = true
19311939
end
19321940
```
19331941

0 commit comments

Comments
 (0)