Remove rabl dependency (#5894)
* Remove rabl dependency * Replicate old Oj configuration
This commit is contained in:
committed by
Yamagishi Kazutoshi
parent
0393a64a90
commit
42bcbd36b7
1
config/initializers/oj.rb
Normal file
1
config/initializers/oj.rb
Normal file
@ -0,0 +1 @@
|
||||
Oj.default_options = { mode: :compat, time_format: :ruby, use_to_json: true }
|
@ -1,7 +0,0 @@
|
||||
Rabl.configure do |config|
|
||||
config.json_engine = Oj
|
||||
config.cache_all_output = false
|
||||
config.cache_sources = Rails.env.production?
|
||||
config.include_json_root = false
|
||||
config.view_paths = [Rails.root.join('app/views')]
|
||||
end
|
Reference in New Issue
Block a user