product_home_template 0.1.6 → 0.1.7
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75473e916e5eb40f272d0ab242e0ebb63d420ef8
|
4
|
+
data.tar.gz: 440d31f3d43c745747077276fdd870abd659a5aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b79387fd8573672b574693f8f0b45dc4547274dba0081e2f1d2c39cbc1775ada6f20b85a03d4fe5515d8aabc3d49ca3b8fca8c435d2851fb786eff0c3baebb1
|
7
|
+
data.tar.gz: 1bbc8c910b6e16bec6720e132dcf694522e384dd04556e4e98fa4388e99211558f1ab8c055a34950c55ec8a7313a5768314e5926026996512714fdbef1ca7660
|
@@ -61,7 +61,7 @@ class CheckByRank < BasicWay
|
|
61
61
|
def my_special_method(pages)
|
62
62
|
@sorted_click = current_member.clicks.order('id desc').select("product_identity").group_by{|o| o.product_identity}.keys.uniq
|
63
63
|
@sorted_click.each do |c|
|
64
|
-
if(@store_detail.products.
|
64
|
+
if(@store_detail.products.find_by(id: c))
|
65
65
|
@record_products << @store_detail.products.find(c).paginate(page: pages, per_page: 3).find(c)
|
66
66
|
end
|
67
67
|
end
|
@@ -72,7 +72,7 @@ class CheckByRank < BasicWay
|
|
72
72
|
def my_special_method_without(member)
|
73
73
|
@sorted_click = member.clicks.order('id desc').select("product_identity").group_by{|o| o.product_identity}.keys.uniq
|
74
74
|
@sorted_click.each do |c|
|
75
|
-
if(@store_detail.products.
|
75
|
+
if(@store_detail.products.find_by(id: c))
|
76
76
|
@record_products << @store_detail.products.find(c)
|
77
77
|
end
|
78
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: product_home_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kishore Kumar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|