Skip to content

Commit

Permalink
Remove obsolete validation
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Aug 14, 2024
1 parent a8daaff commit 2053208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rails_application/app/controllers/supplies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2053208

Please sign in to comment.