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

Version Path
shipit-engine-0.39.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.38.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.37.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.36.1 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.36.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.35.1 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.35.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.34.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.33.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb
shipit-engine-0.32.0 app/controllers/concerns/shipit/active_model_serializers_patch.rb