ruby-grape/grape-entity

View on GitHub
lib/grape_entity/deprecated.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Grape
  class Entity
    class Deprecated < StandardError
      def initialize(msg, spec)
        message = "DEPRECATED #{spec}: #{msg}"

        super(message)
      end
    end
  end
end