0
0
Fork 0

Remove rabl dependency (#5894)

* Remove rabl dependency

* Replicate old Oj configuration
This commit is contained in:
Eugen Rochko 2017-12-06 07:04:49 +01:00 committed by Yamagishi Kazutoshi
parent 0393a64a90
commit 42bcbd36b7
9 changed files with 45 additions and 49 deletions

View file

@ -0,0 +1 @@
Oj.default_options = { mode: :compat, time_format: :ruby, use_to_json: true }

View file

@ -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