Remove rabl dependency (#5894)
* Remove rabl dependency * Replicate old Oj configuration
This commit is contained in:
parent
0393a64a90
commit
42bcbd36b7
9 changed files with 45 additions and 49 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue