product_home_template 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cabcb7dea0dd4d8439559f0f818245f5a35e5a2
4
- data.tar.gz: 3a9b44d488713518b55ef44d3fd27e2fa64f5c81
3
+ metadata.gz: 75473e916e5eb40f272d0ab242e0ebb63d420ef8
4
+ data.tar.gz: 440d31f3d43c745747077276fdd870abd659a5aa
5
5
  SHA512:
6
- metadata.gz: '0600840c5e31e0aa992e37eefd3af0cdd3813aa1b9dd313da388cb12193f8ad795f13713e22b0e7ca889921b8a7c0ccfd366551d5cacd491f59958a3e5a5a441'
7
- data.tar.gz: 68713917b6e57a587ecb23ec318541456d7075387a7ff41f8b7cd11307324c0ef62d5473687db2c7cc637f716d67ae2236ac4f39a71b25753f74ee2a84bee824
6
+ metadata.gz: 5b79387fd8573672b574693f8f0b45dc4547274dba0081e2f1d2c39cbc1775ada6f20b85a03d4fe5515d8aabc3d49ca3b8fca8c435d2851fb786eff0c3baebb1
7
+ data.tar.gz: 1bbc8c910b6e16bec6720e132dcf694522e384dd04556e4e98fa4388e99211558f1ab8c055a34950c55ec8a7313a5768314e5926026996512714fdbef1ca7660
@@ -1,3 +1,3 @@
1
1
  module ProductHomeTemplate
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -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.find(c))
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.find(c))
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.6
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-20 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler