Sha256: e3b4ca91a5409b78482af232a43c637becadf48282ba365f3aabbfb1667e9027

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Formatter
    module FastJsonapi
      include Grape::Formatter::Jsonapi

      class << self
        def call(object, env)
          warn "
            WARNING: Grape::Formatter::FastJsonapi is deprecated
            and will be removed on version 1.1
            Use Grape::Formatter::Jsonapi instead
          "

          super(object, env)
        end

        def deprecated?
          true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-jsonapi-1.0.1 lib/grape_jsonapi/deprecated/formatter.rb
grape-jsonapi-1.0.0 lib/grape_jsonapi/deprecated/formatter.rb