lib/grape/validations/validators/base.rb in grape-1.6.2 vs lib/grape/validations/validators/base.rb in grape-1.7.0
- old
+ new
@@ -91,5 +91,12 @@
end
end
end
end
end
+
+Grape::Validations::Base = Class.new(Grape::Validations::Validators::Base) do
+ def initialize(*)
+ super
+ warn '[DEPRECATION] `Grape::Validations::Base` is deprecated. Use `Grape::Validations::Validators::Base` instead.'
+ end
+end