Skip to content

Commit ebb7718

Browse files
Nit: add explicit Oj Rails config for JSON serialisation (#6876)
* Create oj.rb Explicitly initialise Oj Rails integration * Extra newline lint
1 parent 2b1b9af commit ebb7718

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/initializers/oj.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Explicit configuration to use Oj as the JSON encoder for Blueprinter.
2+
Oj::Rails.mimic_JSON

0 commit comments

Comments
 (0)