shopapp 0.2.40 → 0.2.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f97db7cd032bd05103f2f47e82d778b3e5a6c16331e476a2438cd61af4d0fb6
4
- data.tar.gz: ea71c0a2313df3151b488da15495d49ad3f9787672adab01a07ec5754f5a81c7
3
+ metadata.gz: 0ed4908f8a6533a4d746c0344e882cf9cf681c6067b80c5c14a549cd1b3a3302
4
+ data.tar.gz: 86592aeff630859b71c9e18a9c0ac683b40fbd9b5a04b4cf1cbfc1b23b758371
5
5
  SHA512:
6
- metadata.gz: 4febae91918595da6f4342987506e550e714ef9f09277e81be754d6c49effe3093a47e684984b3becbda1943e9b35fe6a85b1710e4aaf0d5532c00a2f8e0c11f
7
- data.tar.gz: 8b9829b95f594d634191705f095025e7fd96ef114a0b82467622bc1f8c2e4aee9201effe00a02926dabcd7cb251b1b8af7c83193bd93f7facd240c877bb2cbfd
6
+ metadata.gz: 5012703522c87b9bf53c895826e806c6a13bb3b87e32207d7c56e8a6fa7a96fb74d87bc5536f79c78da94edc4112969d15d728fe8b2d375e523273d230597684
7
+ data.tar.gz: 88fa497873c6158071ea1faeff0ec2df6edac0b45a2ddbaec0a582ffad639f459200efe783b027197f2490330abf87cd5c73b1f6ff788c09f1fffc522609a71a
@@ -11,6 +11,7 @@ module ShopliftClient
11
11
  attr_reader :current_user
12
12
  attr_reader :current_company
13
13
  attr_reader :do_hide_search_for_this_action
14
+ attr_reader :search_path
14
15
  attr_accessor :search_placeholder
15
16
  helper_method :company_logo_path_defined
16
17
  end
@@ -67,7 +68,7 @@ module ShopliftClient
67
68
  def show_search_for_this_action(params = {})
68
69
  @do_hide_search_for_this_action = false
69
70
  @search_placeholder = params[:placeholder] if params[:placeholder].present?
70
- self.class.set_search_path params[:search_path] if params[:search_path].present?
71
+ @search_path = params[:search_path] if params[:search_path].present?
71
72
  @search_remote = params[:search_remote] if params[:search_remote].present?
72
73
  end
73
74
 
@@ -59,7 +59,11 @@ module ShopappHelper
59
59
  end
60
60
 
61
61
  def search_path
62
- if controller.class.search_path == :current_path
62
+ if controller.search_path == :current_path
63
+ request.path
64
+ elsif controller.search_path.present?
65
+ "#{controller.search_path || '/'}"
66
+ elsif controller.class.search_path == :current_path
63
67
  request.path
64
68
  else
65
69
  "#{controller.class.search_path || '/'}"
data/shopapp.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.2.40'
4
- s.date = '2019-04-05'
3
+ s.version = '0.2.41'
4
+ s.date = '2019-04-08'
5
5
  s.summary = 'Do a shoplift.'
6
6
  s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
7
7
  I am qualmish at the smell of leek.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.40
4
+ version: 0.2.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-05 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties