ahoy_panel 0.0.9 → 0.0.11

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: 215f2e0248530bff5ab62740cb48d0856c2e38a85b35ddcad16afe9effee4c6d
4
- data.tar.gz: '09f8666d8477a9a847e42683caa7f9d8a188b431bd5d1df08b7bee88fad2fded'
3
+ metadata.gz: 84a8b7eb4b0b4e153e7e50c4f80a10276a3e6cc95557a92f485d5b99c5d55ad0
4
+ data.tar.gz: 64f154954262b7cf6304343dddce15fb2192b664025458eb8c209b7766498a01
5
5
  SHA512:
6
- metadata.gz: 5a9d593d26372bb2eb326518ea06be1a3b261768dad128d84b124e17f61729b36e4be42cdeebf92910ac498a9034cb3af2a7267e39a8e521060552a11b974de2
7
- data.tar.gz: 81157d35b6aa939c4f409cc527e8bc32249c72415429d8520fce11a7d3847afc0838b9ac116427eecc986d53b74f9c957124286f877110473a9c5535fe6bb858
6
+ metadata.gz: ccdea7e7a570e022938e6a152b515b08c28187d9ea34dbab62ac978eb62bccc467355439ed0d006c26f0bac0bfdbcb2780e364d130ef56d3ca47c43cd4003383
7
+ data.tar.gz: 8436c051ba236747fd876f91f81953552af70438073b6d1c9440ee6daa0e7ef0d0bccf5aeebf14902cb7e30cd07b382a0933021d92e08d9fac9b063d0dec5da2
data/README.md CHANGED
@@ -31,6 +31,13 @@ And then execute:
31
31
  bundle install
32
32
  ```
33
33
 
34
+ Mount AhoyPanel in your `config/routes.rb` file:
35
+ ```ruby
36
+ Rails.application.routes.draw do
37
+ mount AhoyPanel::Engine => "ahoy_panel"
38
+ end
39
+ ```
40
+
34
41
  ---
35
42
 
36
43
  ## Configuration
@@ -1,8 +1,8 @@
1
1
  module AhoyPanel
2
2
  class ViewsDataController < ApplicationController
3
3
  def index
4
- @start_date = params[:start_date].to_date
5
- @end_date = params[:end_date].to_date
4
+ @start_date = params[:start_date].to_date.beginning_of_day
5
+ @end_date = params[:end_date].to_date.end_of_day
6
6
 
7
7
  @visits = ::Ahoy::Visit.where(started_at: @start_date..@end_date)
8
8
 
@@ -1,3 +1,3 @@
1
1
  module AhoyPanel
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.11"
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.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jeon