lib/search_flip/json.rb in search_flip-4.0.0.beta5 vs lib/search_flip/json.rb in search_flip-4.0.0.beta6

- old
+ new

@@ -1,22 +1,11 @@ module SearchFlip class JSON - @default_options = { - mode: :custom, - use_to_json: true, - time_format: :xmlschema, - bigdecimal_as_decimal: false - } - - def self.default_options - @default_options - end - def self.generate(obj) - Oj.dump(obj, default_options) + Oj.dump(obj, SearchFlip::Config[:json_options]) end def self.parse(json) - Oj.load(json, default_options) + Oj.load(json, SearchFlip::Config[:json_options]) end end end