Skip to content

Commit

Permalink
make Availability::Product a private constant
Browse files Browse the repository at this point in the history
  • Loading branch information
pjurewicz committed Apr 30, 2024
1 parent 14101a1 commit 8da3e77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Product < ApplicationRecord
self.table_name = "availability_products"
end

# private_constant :Product
private_constant :Product

def self.approximately_available?(product_id, desired_quantity)
!Product.exists?(["uid = ? and available < ?", product_id, desired_quantity])
Expand Down

0 comments on commit 8da3e77

Please sign in to comment.