ruby-grape/grape-roar

View on GitHub
lib/grape/roar/extensions/relations/validations/misc.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Grape
  module Roar
    module Extensions
      module Relations
        module Validations
          module Misc
            def invalid_relation(valid, invalid)
              raise Exceptions::InvalidRelationError,
                    "Expected #{valid}, got #{invalid}!"
            end
          end
        end
      end
    end
  end
end