ahoy_panel 0.0.23 → 0.0.24

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
  SHA256:
3
- metadata.gz: c99fe2927ca95c1cc22bac7831f73d80f8d7dbce8daebc2f75b0e9c43c7ad1f0
4
- data.tar.gz: 4df29b9ace88261222b9ffe91dca819c5ca0bf763c3424f2cc3a537f3be8add2
3
+ metadata.gz: 13efe97a09c413fdf05aebf4601d1a807ae2fa9e04e749cf03adf0da3975f718
4
+ data.tar.gz: 7154418c7310ee468a6c56f4a19b56fd1444fe94ae4f2f4fca46f6a40b30397b
5
5
  SHA512:
6
- metadata.gz: f32609d82604551f9269e3e047d45e0af2821f38fa01a8abfc917ded3099014591823cb001fa6e538f2e1cd8e1bfb5d8c9c179045d495adb53a7db00f9994010
7
- data.tar.gz: f2129799ef75d687b5926245b80502e0e1673eb3d591ee43f4911c082321c5ff6bc5b7094f5a0922e2324d474a043d28776ed871953dd1c3f38dbf3e14f162de
6
+ metadata.gz: 705a3c206ab50d6a7e77143e477b18b4f237f27b6ae0a9dbf2d644ba008dc0b44795e9bd473ee884630e50a138ff953e9f6053a7bd43708f4e8b6de603430dfd
7
+ data.tar.gz: cad59210b78b525d4bd360b097aa24b355e7992d7ecd2d5acc0e67edc079c52d14d91879ef7c78852af46bbd30c8dbf0022651c5411f134637b98bb2c51763c2
@@ -14,12 +14,12 @@ module AhoyPanel
14
14
 
15
15
  @visits = ::Ahoy::Visit.where(started_at: @date_range).order(:id)
16
16
 
17
- filtering_params.each do |key, value|
17
+ @filtering_params.each do |key, value|
18
18
  case key
19
19
  when :id
20
- @visits = @visits.where(id: value)
20
+ @visits = @visits.where(id: value.to_i)
21
21
  when :user_id
22
- @visits = @visits.where(user_id: value)
22
+ @visits = @visits.where(user_id: value.to_i)
23
23
  when :referring_domain
24
24
  @visits = @visits.where("referring_domain ilike ?", "%#{value}%")
25
25
  when :country
@@ -1,3 +1,3 @@
1
1
  module AhoyPanel
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jeon