From 2053208827e3afda6ed9bd7437963813141fe558 Mon Sep 17 00:00:00 2001 From: marlena-b Date: Wed, 14 Aug 2024 13:56:48 +0200 Subject: [PATCH] Remove obsolete validation --- rails_application/app/controllers/supplies_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rails_application/app/controllers/supplies_controller.rb b/rails_application/app/controllers/supplies_controller.rb index 91e85f89..ebac62bf 100644 --- a/rails_application/app/controllers/supplies_controller.rb +++ b/rails_application/app/controllers/supplies_controller.rb @@ -11,7 +11,7 @@ def initialize(params) end validates :product_id, presence: true - validates :quantity, presence: true, numericality: { only_integer: true, greater_than: 0, allow_blank: true, only_numeric: true } + validates :quantity, presence: true, numericality: { only_integer: true, greater_than: 0, allow_blank: true } end def new