Configure Blueprinter
This commit is contained in:
parent
712c866296
commit
7720d5400f
1 changed files with 8 additions and 0 deletions
8
config/initializers/blueprinter.rb
Normal file
8
config/initializers/blueprinter.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'oj' # you can skip this if OJ has already been required.
|
||||
|
||||
Blueprinter.configure do |config|
|
||||
config.generator = Oj # default is JSON
|
||||
# config.sort_fields_by = :definition
|
||||
end
|
||||
Loading…
Reference in a new issue