product_home_template 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/product_home_template/version.rb +1 -1
- data/lib/product_home_template.rb +2 -2
- 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: daa47e09767176e44446c2e98faaa993e606cec1
|
4
|
+
data.tar.gz: 538756b1c7b0af4e4b92c0c48638ca9deca1f288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6bbd85a587dad90755ab7d417c454260b76b497166cebf9dd5f28510e482cd1d0c4169b772ffdce0d45741bb7faf8672851d46a4b4ec115068d6b659db2328f
|
7
|
+
data.tar.gz: 0c2b64dd1bf8e65066e32b884e45ef2a2a5b869bd92b902ae7bab63e851424d087aa70b254512917fd7e50098f02d9f8aaef2d0f70ba9f28d5e80273a41f30d1
|
@@ -93,14 +93,14 @@ class CheckByNormal < BasicWay
|
|
93
93
|
|
94
94
|
#this method to run the logic of listing the products with pagination
|
95
95
|
def my_special_method(pages)
|
96
|
-
@products = @store_detail.products.paginate(page: pages, per_page: 3)
|
96
|
+
@products = @store_detail.products.order('id asc').paginate(page: pages, per_page: 3)
|
97
97
|
puts("=== by baisc page ===")
|
98
98
|
return @products
|
99
99
|
end
|
100
100
|
|
101
101
|
#this method to run the logic of listing the products without pagination
|
102
102
|
def my_special_method_without(member)
|
103
|
-
@products = @store_detail.products
|
103
|
+
@products = @store_detail.products.order('id asc')
|
104
104
|
return @products
|
105
105
|
end
|
106
106
|
end
|