Sha256: 344cbbb6784a0044c1a2dbe95da29f36527b0bc8b9b1284789050d2dffa29aa2
Contents?: true
Size: 461 Bytes
Versions: 10
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true module Shipit module ActiveModelSerializersPatch private def namespace_for_serializer # TODO: This is a monkey patch for active_model_serializers 0.9.7. # It's really outdated and newer versions aren't really a suitable replacement. # We should look into simply getting rid of it. @namespace_for_serializer ||= self.class.module_parent unless self.class.module_parent == Object end end end
Version data entries
10 entries across 10 versions & 1 rubygems