lib/garage/hypermedia_responder.rb in the_garage-2.3.2 vs lib/garage/hypermedia_responder.rb in the_garage-2.3.3
- old
+ new
@@ -89,10 +89,10 @@
def initialize(data, options = {})
@data, @options = data, options
end
def render
- Oj.dump(converted_data, mode: :compat).gsub(/([<>])/, JSON_ESCAPE_TABLE)
+ Oj.dump(converted_data, mode: :compat, use_as_json: true).gsub(/([<>])/, JSON_ESCAPE_TABLE)
end
private
def dictionary?