op_cart 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/op_cart/product.rb +0 -1
- data/lib/op_cart/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f02ef8a5af017815cb06b3d09db56e03c57c59f
|
4
|
+
data.tar.gz: bad1b5aa4977f437499b51ede718d5f9335cb3df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb81f925457e7f4d9b2b83f836b6806e1dc65388b3e376d539decbf7378367ba87a529fe7654ddd52b8ff97ca324c5159d5c4d134af6b619d3e306e0b4f0d9af
|
7
|
+
data.tar.gz: 5161278ed86bd456df1aaac29b435700da74363a672b5fd9b8b01dff3457457b3234f247a4c6d44e54ca644c652d6b2058074772a967871c5c0e542bb48056b0
|
@@ -3,7 +3,6 @@ module OpCart
|
|
3
3
|
belongs_to :user
|
4
4
|
|
5
5
|
validates :name, presence: true
|
6
|
-
validates :description, presence: true
|
7
6
|
validates :sku, uniqueness: true, if: :sku?
|
8
7
|
validates :price, numericality: { only_integer: true, greater_than_or_equal_to: 0 }
|
9
8
|
validates :user, presence: true
|
data/lib/op_cart/version.rb
CHANGED