"Fossies" - the Fresh Open Source Software Archive

Member "discourse-2.8.3/config/initializers/100-oj.rb" (14 Apr 2022, 232 Bytes) of package /linux/www/discourse-2.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # frozen_string_literal: true
    2 
    3 Oj::Rails.set_encoder()
    4 Oj::Rails.set_decoder()
    5 Oj::Rails.optimize()
    6 Oj.default_options = Oj.default_options.merge(mode: :compat)
    7 
    8 # Not sure why it's not using this by default!
    9 MultiJson.engine = :oj