Sha256: bf11884d2e98e663610dabc0920890c912fff2acd0650bc0750bae70c3e881b7
Contents?: true
Size: 269 Bytes
Versions: 9
Compression:
Stored size: 269 Bytes
Contents
# frozen_string_literal: true module Uploader module JsonRendering def render_json(hash_or_object, status = 200) self.status = status self.content_type = request.format self.response_body = hash_or_object.to_json(root: false) end end end
Version data entries
9 entries across 9 versions & 1 rubygems