ahoy_panel 0.0.19 → 0.0.20

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: 5fc827c08f6f6193cd71eae7f12eb9e9cf61bd4e1217860d511ba5e75e03d01a
4
- data.tar.gz: d21abbab42d66c0ba5896c1676bea6ebc99a4d0b2dbe04185e5ab287e4b22e1d
3
+ metadata.gz: 14e70a946cda4c1d38e3076f597a27d7f2833fd9b8311d16917512c14580f99d
4
+ data.tar.gz: 04e3ef4321a1017982e07cb1cfe85717b68cee79afccfd3e4c5fa30fb9663973
5
5
  SHA512:
6
- metadata.gz: e3c97164a79913a5c591a8696aacd3a5299878ae210b4ac9a1297e4a24b3fc23e9634c4cd3724d8517b4a2a5febe37cdfb69fc7863e4a6024892f10aabe487a3
7
- data.tar.gz: cb4104559a024d7ae0bbcf65e23736d318fc14af0ee7a95ca5de06349d99b3ed14f312c9d70f43826cce1d6c6e5434b41de4fa1125325f8309a2dc1bbab0485a
6
+ metadata.gz: fd745aa561acb937c2b7c757b6ec32fe3ae07802a4aa7e4eddb5f59fc8cdb7d8ffa329fa788192cb05a8d537639efe7e609b57c9e6b08aadf93fad421f5e9bff
7
+ data.tar.gz: 725fceed6909a44884685c46b1a37b175fec8579ec011f159a784475f4f4bba8aa3f8745108c154a301a4579c5ed57d86e547318563078ef04cacf313c0b8e6d
@@ -8,10 +8,10 @@ module AhoyPanel
8
8
  @events = ::Ahoy::Event.where(time: @start_date..@end_date).order(:id)
9
9
 
10
10
  if @page.present?
11
- @events = @visits.page(@page)
11
+ @events = @events.page(@page)
12
12
  end
13
13
 
14
- render json: { events: @events, total_count: @page.present? ? @visits.total_count : nil }
14
+ render json: { events: @events, total_count: @page.present? ? @events.total_count : nil }
15
15
  end
16
16
 
17
17
  def dates
@@ -1,3 +1,3 @@
1
1
  module AhoyPanel
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
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.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jeon