Sha256: 6093430ab84bc110c0421e3f6ccc1e45294a4e00f562daf9528c1746254d625a
Contents?: true
Size: 327 Bytes
Versions: 4
Compression:
Stored size: 327 Bytes
Contents
# frozen_string_literal: true module DoorkeeperMongodb module Mixins module Mongoid module JsonSerializable extend ActiveSupport::Concern def as_json(*args) json = super json["id"] = json.delete("_id") if json.key?("_id") json end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems