audit_rails 1.1.3 → 1.1.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDdkOGM2MzI0OWUzZTU3Y2YyODNkYTkxZjA3MDEzNmYwZjQ3Y2QyYw==
4
+ M2RmMDljYzFkMDg4ZjNmZDkxMDEzNDQzMzQ2MTU4YmUyOGE1ZGU3YQ==
5
5
  data.tar.gz: !binary |-
6
- NTA4ZDk1OWIwMzFhY2UwMTY3MTZkYWYyZjFmNTg1NTE3YTY2ZTlkMA==
6
+ YmM2YjI2YTkyZWI4ODUzYTJkNjBlMzAzNDc0ZDI2NzM3NDdjYTMwNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjVhMDQyYjBlYjA4MmU3ZjJlOTM5ZDU0YjI2MTgyYTI0MGRiNmRlYWQ2M2M2
10
- YjA1OWUwMDhhN2FmZGUwMzgwOGU4YmQ0NzllNWQ0OWQxYzE1NzU4MzJiMWI0
11
- MzE2NGU3ZTU1MWIyMDZlOTBjZDhjZWRmNWE4MzQxYTY4Y2NhODc=
9
+ ZGQ2ODQwZjYyOTYzMDNjYWVjMjVkNDcyYmMzNzY5Y2FmNjEwMzJhOTVjZDVj
10
+ NTBlMTU5NjE4ZWI3YzAwOTExNGE0ZTNlMzZiMTQ1MjFjN2FlNWIwOGNhNDVl
11
+ Y2IzYTI3YWU5YjFmNzk1ZDFlZTQwY2NkZDMxOTY3ZGJmMDE3OGM=
12
12
  data.tar.gz: !binary |-
13
- Y2U2M2MzNWMzYTlkMTI3MTVlZTNiMzllMDhjZGUzYjFhYTYxOGRhNzBiMTkw
14
- MjhhYzk0YWVhZGI1YWZmOGI5MDBhNGEyYmI3YzcxZTBjY2NmOGU4NjBlZGQ0
15
- MGViZTgzZmVkMWE0OWI5OTQyYzRiN2UzZTk1ODEzZjkyMzVjZGY=
13
+ NTE4OTFkOWYwNjE4NTk5ZDViNWRhYWQwNTBiZmFkODQ5NjVhZjYzMDhmY2Rm
14
+ MTFhNGI5NjkxMjU1ODFjNzVmY2JkZjI5MTRhOWUwOTU3ZTZlNDU2ODA5MDhm
15
+ MDgyZjA1ODFiNWRlM2U2MjZkMGYwZmE2MzgzZWRkZDRiZmU5YjQ=
@@ -0,0 +1,98 @@
1
+ ## AuditRails
2
+ [![Gem Version](https://badge.fury.io/rb/audit_rails.png)](http://badge.fury.io/rb/audit_rails)
3
+
4
+ An action based auditor, which has internal as well as outgoing link tracking.
5
+
6
+ It is inspired from many great audit gems in rails community that audits model and I was looking for a gem which can audit based on actions as well as can audit link tracking. This gem just serve this purpose.
7
+
8
+ Roughly it is doing similar to what Omniture does, but has very minimum features for now.
9
+
10
+ Now also has analytics(charts) for User counts
11
+
12
+ #### User visit & page view count:
13
+ ![User visit](https://github.com/gouravtiwari/audit_rails/raw/master/docs/user-clicks.png)
14
+ ![Page Views](https://github.com/gouravtiwari/audit_rails/raw/master/docs/page-views.png)
15
+
16
+ ### Build Status
17
+ [![Build Status](https://travis-ci.org/gouravtiwari/audit_rails.png?branch=master)](https://travis-ci.org/gouravtiwari/audit_rails)
18
+
19
+ ### Pre-requisites:
20
+ For rails 3.x.x and ruby>1.9.2:
21
+
22
+ gem install audit_rails
23
+
24
+ or in application’s Gemfile add:
25
+
26
+ gem ‘audit_rails’
27
+
28
+ ### Install
29
+
30
+ rails g audit_rails:install
31
+
32
+ ### Usage
33
+ #### To add audit migration:
34
+
35
+ rake audit_rails:install:migrations
36
+
37
+ #### Add audit.js to application.js file:
38
+
39
+ //= require audit_rails/audit
40
+ //= require audit_rails/Chart.min
41
+
42
+ #### To add additional attributes to Audit (let's say book_id):
43
+
44
+ Add attributes to migration generated from above rake task
45
+
46
+ Inherit from AuditRails::Audit:
47
+
48
+ # MyApp/app/models/audit.rb
49
+ class Audit < AuditRails::Audit
50
+ attr_accessible :action, :controller, :description, :user_name,
51
+ :book_id
52
+ # add associations as usual:
53
+ belongs_to :book
54
+ end
55
+
56
+ #### To log user events
57
+ Simply call 'add_to_audit' with desired parameters in any controller (as this is now a helper method included in application_controller.rb of application)
58
+
59
+ #### To override controller's add_to_audit method (or the helper method)
60
+ Simply re-implement in application_controller.rb
61
+
62
+ #### To track user login (one per day)
63
+ Override current_user method in application controller, e.g.:
64
+
65
+ def current_user
66
+ add_to_audit('login', 'sessions', "John Smith")
67
+ super
68
+ end
69
+
70
+ #### To see all audits
71
+
72
+ Go to <app-url>/audit_rails/audits
73
+
74
+ #### To see Analytics
75
+
76
+ Go to <app-url>/audit_rails/audits/analytics
77
+
78
+ #### To download the audit report as xls file:
79
+ Add this to initializers/mime_types.rb
80
+
81
+ Mime::Type.register "application/vnd.ms-excel", :xls
82
+
83
+ Use below link in views:
84
+
85
+ link_to audit_rails.audits_path(:format => "xls")
86
+
87
+ ### Changelog
88
+
89
+ https://github.com/gouravtiwari/audit_rails/blob/master/CHANGELOG.rdoc
90
+
91
+ ### Contribute
92
+
93
+ You are welcome to contribute and add more feature to this gem. I have added rspec and guard to it to run tests quickly. So running specs shouldn't be a problem.
94
+
95
+ Please fork it, add specs and send a pull request!
96
+
97
+ ### License
98
+ This project rocks and uses MIT-LICENSE.
@@ -23,6 +23,7 @@ module AuditRails
23
23
  def analytics
24
24
  @analysis_by_user_name = AuditRails::Audit.analysis_by_user_name
25
25
  @analysis_by_page_views = AuditRails::Audit.analysis_by_page_views
26
+ @total = AuditRails::Audit.count
26
27
  end
27
28
  end
28
29
  end
@@ -1,5 +1,4 @@
1
- <%= javascript_include_tag "Chart.min"%>
2
- <div id='analyticsByUser'>User clicks</div>
1
+ <div id='analyticsByUser'>Total user clicks : <%= @total %></div>
3
2
  <br/>
4
3
  <canvas id="userViews" height="450" width="600"></canvas>
5
4
 
@@ -10,7 +9,7 @@
10
9
  labels : <%= "#{@analysis_by_user_name.keys}".html_safe %>,
11
10
  datasets : [
12
11
  {
13
- fillColor : "rgba(220,220,220,0.5)",
12
+ fillColor : "rgba(151,187,205,0.5)",
14
13
  strokeColor : "rgba(220,220,220,1)",
15
14
  pointColor : "rgba(220,220,220,1)",
16
15
  pointStrokeColor : "#fff",
@@ -20,11 +19,11 @@
20
19
 
21
20
  }
22
21
 
23
- var myBar = new Chart(document.getElementById("userViews").getContext("2d")).Bar(barChartData);
22
+ var myBar = new Chart(document.getElementById("userViews").getContext("2d")).Bar(barChartData, {scaleLineWidth : 2, scaleLineColor : "rgba(0,0,0,.1)", scaleSteps : <%= @analysis_by_user_name.values.max/5 + 2%>, scaleOverride : true, scaleStepWidth: 5});
24
23
 
25
24
  </script>
26
25
 
27
- <div id='analyticsByPage'>Page views</div>
26
+ <div id='analyticsByPage'>Total page views: <%= @total %></div>
28
27
  <br/>
29
28
  <canvas id="pageViews" height="450" width="600"></canvas>
30
29
 
@@ -35,7 +34,7 @@
35
34
  labels : <%= "#{@analysis_by_page_views.keys}".html_safe %>,
36
35
  datasets : [
37
36
  {
38
- fillColor : "rgba(220,220,220,0.5)",
37
+ fillColor : "rgba(151,187,205,0.5)",
39
38
  strokeColor : "rgba(220,220,220,1)",
40
39
  pointColor : "rgba(220,220,220,1)",
41
40
  pointStrokeColor : "#fff",
@@ -45,6 +44,6 @@
45
44
 
46
45
  }
47
46
 
48
- var myLine = new Chart(document.getElementById("pageViews").getContext("2d")).Line(lineChartData);
47
+ var myLine = new Chart(document.getElementById("pageViews").getContext("2d")).Line(lineChartData, {scaleLineWidth : 2, scaleLineColor : "rgba(0,0,0,.1)", scaleSteps : <%= @analysis_by_user_name.values.max/5 + 2%>, scaleOverride : true, scaleStepWidth: 5});
49
48
 
50
49
  </script>
@@ -2,6 +2,7 @@ AuditRails::Engine.routes.draw do
2
2
  resources :audits, :only => [:create, :index] do
3
3
  collection do
4
4
  get :analytics
5
+ post :filter
5
6
  end
6
7
  end
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module AuditRails
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -58,11 +58,13 @@ describe AuditRails::AuditsController do
58
58
  context "GET analytics" do
59
59
  it "shows analytics of audits on page" do
60
60
  # list should be a hash
61
+ AuditRails::Audit.stub(:count).and_return(count = 18)
61
62
  AuditRails::Audit.stub(:analysis_by_user_name).and_return(user_list = {"Fake User"=>6, "John Smith"=>3})
62
63
  AuditRails::Audit.stub(:analysis_by_page_views).and_return(page_list = {"visit-site"=>6, "login"=>3})
63
64
 
64
65
  get 'analytics'
65
66
 
67
+ expect(assigns(:total)).to eq(count)
66
68
  expect(assigns(:analysis_by_user_name)).to eq(user_list)
67
69
  expect(assigns(:analysis_by_page_views)).to eq(page_list)
68
70
  end
Binary file
@@ -539,3 +539,27 @@ Connecting to database specified by database.yml
539
539
   (1.6ms) DROP TABLE "audit_rails_audits"
540
540
   (0.8ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
541
541
   (0.4ms) SELECT version FROM "schema_migrations"
542
+ Connecting to database specified by database.yml
543
+  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
544
+  (0.3ms) select sqlite_version(*)
545
+  (1.2ms) DROP TABLE "audit_rails_audits"
546
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
547
+  (0.1ms) SELECT version FROM "schema_migrations"
548
+ Connecting to database specified by database.yml
549
+  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
550
+  (0.7ms) select sqlite_version(*)
551
+  (1.7ms) DROP TABLE "audit_rails_audits"
552
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
553
+  (0.2ms) SELECT version FROM "schema_migrations"
554
+ Connecting to database specified by database.yml
555
+  (3.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
556
+  (0.7ms) select sqlite_version(*)
557
+  (1.7ms) DROP TABLE "audit_rails_audits"
558
+  (1.0ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
559
+  (0.3ms) SELECT version FROM "schema_migrations"
560
+ Connecting to database specified by database.yml
561
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
562
+  (0.3ms) select sqlite_version(*)
563
+  (1.6ms) DROP TABLE "audit_rails_audits"
564
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
565
+  (0.1ms) SELECT version FROM "schema_migrations"
@@ -4771,3 +4771,663 @@ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.7ms)
4771
4771
   (0.0ms) RELEASE SAVEPOINT active_record_1
4772
4772
   (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
4773
4773
   (0.4ms) rollback transaction
4774
+ Connecting to database specified by database.yml
4775
+  (0.3ms) begin transaction
4776
+ Processing by AuditRails::AuditsController#analytics as HTML
4777
+ Rendered /Users/gouravtiwari/audit_rails/app/views/audit_rails/audits/analytics.html.erb within layouts/audit_rails/application (2.5ms)
4778
+ Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.0ms)
4779
+  (0.1ms) rollback transaction
4780
+  (0.1ms) begin transaction
4781
+  (0.1ms) SAVEPOINT active_record_1
4782
+ SQL (6.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged on at 2013-09-23 04:23:40 UTC"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4784
+  (0.0ms) SAVEPOINT active_record_1
4785
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged on at 2013-09-22 04:23:40 UTC"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4787
+  (0.0ms) SAVEPOINT active_record_1
4788
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged on at 2013-09-21 04:23:40 UTC"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4790
+ Processing by AuditRails::AuditsController#index as XLS
4791
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
4792
+ Sent data audits.xls (2.5ms)
4793
+ Completed 200 OK in 15ms (Views: 2.3ms | ActiveRecord: 0.1ms)
4794
+  (0.4ms) rollback transaction
4795
+  (0.1ms) begin transaction
4796
+  (0.0ms) SAVEPOINT active_record_1
4797
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged on at 2013-09-23 04:23:40 UTC"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4799
+  (0.0ms) SAVEPOINT active_record_1
4800
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged on at 2013-09-22 04:23:40 UTC"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4802
+  (0.0ms) SAVEPOINT active_record_1
4803
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged on at 2013-09-21 04:23:40 UTC"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4805
+ Processing by AuditRails::AuditsController#index as HTML
4806
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
4807
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
4808
+  (0.5ms) rollback transaction
4809
+  (0.1ms) begin transaction
4810
+ Processing by AuditRails::AuditsController#create as HTML
4811
+  (0.1ms) SAVEPOINT active_record_1
4812
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4814
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
4815
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-24 00:00:00.000000' AND '2013-09-24 23:59:59.999999')
4816
+  (0.3ms) rollback transaction
4817
+  (0.1ms) begin transaction
4818
+  (0.1ms) rollback transaction
4819
+  (0.0ms) begin transaction
4820
+  (0.0ms) rollback transaction
4821
+  (0.0ms) begin transaction
4822
+  (0.0ms) rollback transaction
4823
+  (0.2ms) begin transaction
4824
+ Processing by AnonymousController#login as HTML
4825
+ Parameters: {"id"=>"1"}
4826
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-24 00:00:00.000000' AND '2013-09-24 23:59:59.999999')
4827
+  (0.0ms) SAVEPOINT active_record_1
4828
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", "User logged in"], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4830
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.6ms)
4831
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-24 00:00:00.000000' AND '2013-09-24 23:59:59.999999')
4832
+  (0.4ms) rollback transaction
4833
+  (0.1ms) begin transaction
4834
+  (0.1ms) SAVEPOINT active_record_1
4835
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4837
+  (0.0ms) SAVEPOINT active_record_1
4838
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4840
+  (0.0ms) SAVEPOINT active_record_1
4841
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4843
+  (0.0ms) SAVEPOINT active_record_1
4844
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4846
+  (0.0ms) SAVEPOINT active_record_1
4847
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4849
+  (0.0ms) SAVEPOINT active_record_1
4850
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4852
+  (0.2ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
4853
+  (0.4ms) rollback transaction
4854
+  (0.1ms) begin transaction
4855
+  (0.0ms) SAVEPOINT active_record_1
4856
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4858
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-24 00:00:00.000000' AND '2013-09-24 23:59:59.999999')
4859
+  (0.3ms) rollback transaction
4860
+  (0.1ms) begin transaction
4861
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-24 00:00:00.000000' AND '2013-09-24 23:59:59.999999')
4862
+  (0.0ms) rollback transaction
4863
+  (0.0ms) begin transaction
4864
+  (0.0ms) SAVEPOINT active_record_1
4865
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4867
+  (0.0ms) SAVEPOINT active_record_1
4868
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4870
+  (0.0ms) SAVEPOINT active_record_1
4871
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4873
+  (0.0ms) SAVEPOINT active_record_1
4874
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4876
+  (0.0ms) SAVEPOINT active_record_1
4877
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "John Smith"]]
4878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4879
+  (0.0ms) SAVEPOINT active_record_1
4880
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["description", nil], ["updated_at", Tue, 24 Sep 2013 04:23:40 UTC +00:00], ["user_name", "Fake User"]]
4881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4882
+  (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
4883
+  (0.3ms) rollback transaction
4884
+ Connecting to database specified by database.yml
4885
+  (0.3ms) begin transaction
4886
+ Processing by AnonymousController#login as HTML
4887
+ Parameters: {"id"=>"1"}
4888
+  (1.4ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-25 00:00:00.000000' AND '2013-09-25 23:59:59.999999')
4889
+  (0.1ms) SAVEPOINT active_record_1
4890
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged in"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4892
+ Rendered text template (0.0ms)
4893
+ Completed 200 OK in 51ms (Views: 28.0ms | ActiveRecord: 3.8ms)
4894
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-25 00:00:00.000000' AND '2013-09-25 23:59:59.999999')
4895
+  (0.3ms) rollback transaction
4896
+  (0.1ms) begin transaction
4897
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-25 00:00:00.000000' AND '2013-09-25 23:59:59.999999')
4898
+  (0.1ms) rollback transaction
4899
+  (0.1ms) begin transaction
4900
+  (0.0ms) SAVEPOINT active_record_1
4901
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4903
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-25 00:00:00.000000' AND '2013-09-25 23:59:59.999999')
4904
+  (0.3ms) rollback transaction
4905
+  (0.1ms) begin transaction
4906
+  (0.0ms) SAVEPOINT active_record_1
4907
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4909
+  (0.0ms) SAVEPOINT active_record_1
4910
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4912
+  (0.0ms) SAVEPOINT active_record_1
4913
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4915
+  (0.0ms) SAVEPOINT active_record_1
4916
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4918
+  (0.0ms) SAVEPOINT active_record_1
4919
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4921
+  (0.0ms) SAVEPOINT active_record_1
4922
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4924
+  (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
4925
+  (0.6ms) rollback transaction
4926
+  (0.1ms) begin transaction
4927
+  (0.1ms) SAVEPOINT active_record_1
4928
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4930
+  (0.0ms) SAVEPOINT active_record_1
4931
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4933
+  (0.0ms) SAVEPOINT active_record_1
4934
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4936
+  (0.0ms) SAVEPOINT active_record_1
4937
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4939
+  (0.0ms) SAVEPOINT active_record_1
4940
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "John Smith"]]
4941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4942
+  (0.0ms) SAVEPOINT active_record_1
4943
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4945
+  (0.1ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
4946
+  (0.3ms) rollback transaction
4947
+  (0.1ms) begin transaction
4948
+  (0.1ms) rollback transaction
4949
+  (0.0ms) begin transaction
4950
+  (0.1ms) rollback transaction
4951
+  (0.1ms) begin transaction
4952
+  (0.1ms) rollback transaction
4953
+  (0.1ms) begin transaction
4954
+ Processing by AuditRails::AuditsController#analytics as HTML
4955
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
4956
+  (0.1ms) rollback transaction
4957
+  (0.1ms) begin transaction
4958
+ Processing by AuditRails::AuditsController#create as HTML
4959
+  (0.0ms) SAVEPOINT active_record_1
4960
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", nil], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4962
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
4963
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-25 00:00:00.000000' AND '2013-09-25 23:59:59.999999')
4964
+  (0.3ms) rollback transaction
4965
+  (0.1ms) begin transaction
4966
+  (0.0ms) SAVEPOINT active_record_1
4967
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged on at 2013-09-24 05:18:36 UTC"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4969
+  (0.0ms) SAVEPOINT active_record_1
4970
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged on at 2013-09-23 05:18:36 UTC"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4972
+  (0.0ms) SAVEPOINT active_record_1
4973
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged on at 2013-09-22 05:18:36 UTC"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4975
+ Processing by AuditRails::AuditsController#index as HTML
4976
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
4977
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
4978
+  (0.4ms) rollback transaction
4979
+  (0.1ms) begin transaction
4980
+  (0.1ms) SAVEPOINT active_record_1
4981
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged on at 2013-09-24 05:18:36 UTC"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4983
+  (0.1ms) SAVEPOINT active_record_1
4984
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged on at 2013-09-23 05:18:36 UTC"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4986
+  (0.0ms) SAVEPOINT active_record_1
4987
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["description", "User logged on at 2013-09-22 05:18:36 UTC"], ["updated_at", Wed, 25 Sep 2013 05:18:36 UTC +00:00], ["user_name", "Fake User"]]
4988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4989
+ Processing by AuditRails::AuditsController#index as XLS
4990
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
4991
+ Sent data audits.xls (0.5ms)
4992
+ Completed 200 OK in 31ms (Views: 0.3ms | ActiveRecord: 0.1ms)
4993
+  (0.5ms) rollback transaction
4994
+ Connecting to database specified by database.yml
4995
+  (0.3ms) begin transaction
4996
+ Processing by AnonymousController#login as HTML
4997
+ Parameters: {"id"=>"1"}
4998
+  (1.8ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-26 00:00:00.000000' AND '2013-09-26 23:59:59.999999')
4999
+  (0.1ms) SAVEPOINT active_record_1
5000
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", "User logged in"], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5002
+ Rendered text template (0.0ms)
5003
+ Completed 200 OK in 58ms (Views: 31.1ms | ActiveRecord: 4.7ms)
5004
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-26 00:00:00.000000' AND '2013-09-26 23:59:59.999999')
5005
+  (0.4ms) rollback transaction
5006
+  (0.1ms) begin transaction
5007
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-26 00:00:00.000000' AND '2013-09-26 23:59:59.999999')
5008
+  (0.0ms) rollback transaction
5009
+  (0.1ms) begin transaction
5010
+  (0.0ms) SAVEPOINT active_record_1
5011
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5013
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-26 00:00:00.000000' AND '2013-09-26 23:59:59.999999')
5014
+  (0.3ms) rollback transaction
5015
+  (0.1ms) begin transaction
5016
+  (0.0ms) SAVEPOINT active_record_1
5017
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5019
+  (0.0ms) SAVEPOINT active_record_1
5020
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5022
+  (0.0ms) SAVEPOINT active_record_1
5023
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5025
+  (0.0ms) SAVEPOINT active_record_1
5026
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5028
+  (0.0ms) SAVEPOINT active_record_1
5029
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5031
+  (0.0ms) SAVEPOINT active_record_1
5032
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5034
+  (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
5035
+  (0.5ms) rollback transaction
5036
+  (0.1ms) begin transaction
5037
+  (0.1ms) SAVEPOINT active_record_1
5038
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5040
+  (0.0ms) SAVEPOINT active_record_1
5041
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5043
+  (0.0ms) SAVEPOINT active_record_1
5044
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5046
+  (0.0ms) SAVEPOINT active_record_1
5047
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5049
+  (0.0ms) SAVEPOINT active_record_1
5050
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "John Smith"]]
5051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5052
+  (0.0ms) SAVEPOINT active_record_1
5053
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:18 UTC +00:00], ["user_name", "Fake User"]]
5054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5055
+  (0.1ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
5056
+  (0.3ms) rollback transaction
5057
+  (0.1ms) begin transaction
5058
+  (0.1ms) rollback transaction
5059
+  (0.0ms) begin transaction
5060
+  (0.1ms) rollback transaction
5061
+  (0.1ms) begin transaction
5062
+  (0.1ms) rollback transaction
5063
+  (0.1ms) begin transaction
5064
+ Processing by AuditRails::AuditsController#create as HTML
5065
+  (0.0ms) SAVEPOINT active_record_1
5066
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", nil], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5068
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
5069
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-26 00:00:00.000000' AND '2013-09-26 23:59:59.999999')
5070
+  (0.5ms) rollback transaction
5071
+  (0.1ms) begin transaction
5072
+  (0.1ms) SAVEPOINT active_record_1
5073
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", "User logged on at 2013-09-25 03:48:19 UTC"], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5075
+  (0.0ms) SAVEPOINT active_record_1
5076
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", "User logged on at 2013-09-24 03:48:19 UTC"], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5078
+  (0.0ms) SAVEPOINT active_record_1
5079
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", "User logged on at 2013-09-23 03:48:19 UTC"], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5081
+ Processing by AuditRails::AuditsController#index as HTML
5082
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
5083
+ Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.1ms)
5084
+  (0.4ms) rollback transaction
5085
+  (0.1ms) begin transaction
5086
+  (0.0ms) SAVEPOINT active_record_1
5087
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", "User logged on at 2013-09-25 03:48:19 UTC"], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5089
+  (0.0ms) SAVEPOINT active_record_1
5090
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", "User logged on at 2013-09-24 03:48:19 UTC"], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5091
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5092
+  (0.0ms) SAVEPOINT active_record_1
5093
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["description", "User logged on at 2013-09-23 03:48:19 UTC"], ["updated_at", Thu, 26 Sep 2013 03:48:19 UTC +00:00], ["user_name", "Fake User"]]
5094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5095
+ Processing by AuditRails::AuditsController#index as XLS
5096
+ AuditRails::Audit Load (0.2ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
5097
+ Sent data audits.xls (0.5ms)
5098
+ Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 0.2ms)
5099
+  (0.4ms) rollback transaction
5100
+  (0.1ms) begin transaction
5101
+ Processing by AuditRails::AuditsController#analytics as HTML
5102
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
5103
+  (0.1ms) rollback transaction
5104
+ Connecting to database specified by database.yml
5105
+  (0.3ms) begin transaction
5106
+  (0.1ms) SAVEPOINT active_record_1
5107
+ SQL (9.9ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5109
+  (0.0ms) SAVEPOINT active_record_1
5110
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5112
+  (0.0ms) SAVEPOINT active_record_1
5113
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5115
+  (0.0ms) SAVEPOINT active_record_1
5116
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5118
+  (0.0ms) SAVEPOINT active_record_1
5119
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5121
+  (0.0ms) SAVEPOINT active_record_1
5122
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5124
+  (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
5125
+  (0.9ms) rollback transaction
5126
+  (0.1ms) begin transaction
5127
+  (0.0ms) SAVEPOINT active_record_1
5128
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5130
+  (0.0ms) SAVEPOINT active_record_1
5131
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5133
+  (0.0ms) SAVEPOINT active_record_1
5134
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5136
+  (0.0ms) SAVEPOINT active_record_1
5137
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5139
+  (0.0ms) SAVEPOINT active_record_1
5140
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5142
+  (0.0ms) SAVEPOINT active_record_1
5143
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5145
+  (0.2ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
5146
+  (0.5ms) rollback transaction
5147
+  (0.1ms) begin transaction
5148
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5149
+  (0.1ms) rollback transaction
5150
+  (0.1ms) begin transaction
5151
+  (0.0ms) SAVEPOINT active_record_1
5152
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "John Smith"]]
5153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5154
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5155
+  (0.3ms) rollback transaction
5156
+  (0.1ms) begin transaction
5157
+ Processing by AuditRails::AuditsController#analytics as HTML
5158
+ Rendered /Users/gouravtiwari/audit_rails/app/views/audit_rails/audits/analytics.html.erb within layouts/audit_rails/application (2.8ms)
5159
+ Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
5160
+  (0.1ms) rollback transaction
5161
+  (0.1ms) begin transaction
5162
+  (0.1ms) SAVEPOINT active_record_1
5163
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged on at 2013-09-26 03:15:05 UTC"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5165
+  (0.0ms) SAVEPOINT active_record_1
5166
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged on at 2013-09-25 03:15:05 UTC"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5168
+  (0.0ms) SAVEPOINT active_record_1
5169
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged on at 2013-09-24 03:15:05 UTC"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5171
+ Processing by AuditRails::AuditsController#index as HTML
5172
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
5173
+ Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.1ms)
5174
+  (0.4ms) rollback transaction
5175
+  (0.1ms) begin transaction
5176
+  (0.0ms) SAVEPOINT active_record_1
5177
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged on at 2013-09-26 03:15:05 UTC"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5179
+  (0.0ms) SAVEPOINT active_record_1
5180
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged on at 2013-09-25 03:15:05 UTC"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5182
+  (0.0ms) SAVEPOINT active_record_1
5183
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged on at 2013-09-24 03:15:05 UTC"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5185
+ Processing by AuditRails::AuditsController#index as XLS
5186
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
5187
+ Sent data audits.xls (3.1ms)
5188
+ Completed 200 OK in 16ms (Views: 2.9ms | ActiveRecord: 0.1ms)
5189
+  (0.4ms) rollback transaction
5190
+  (0.1ms) begin transaction
5191
+ Processing by AuditRails::AuditsController#create as HTML
5192
+  (0.1ms) SAVEPOINT active_record_1
5193
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5195
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
5196
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5197
+  (0.3ms) rollback transaction
5198
+  (0.0ms) begin transaction
5199
+  (0.1ms) rollback transaction
5200
+  (0.1ms) begin transaction
5201
+  (0.1ms) rollback transaction
5202
+  (0.0ms) begin transaction
5203
+  (0.0ms) rollback transaction
5204
+  (0.0ms) begin transaction
5205
+ Processing by AnonymousController#login as HTML
5206
+ Parameters: {"id"=>"1"}
5207
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5208
+  (0.0ms) SAVEPOINT active_record_1
5209
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["description", "User logged in"], ["updated_at", Fri, 27 Sep 2013 03:15:05 UTC +00:00], ["user_name", "Fake User"]]
5210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5211
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)
5212
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5213
+  (0.3ms) rollback transaction
5214
+ Connecting to database specified by database.yml
5215
+  (0.3ms) begin transaction
5216
+ Processing by AuditRails::AuditsController#analytics as HTML
5217
+ Rendered /Users/gouravtiwari/audit_rails/app/views/audit_rails/audits/analytics.html.erb within layouts/audit_rails/application (2.2ms)
5218
+ Completed 200 OK in 30ms (Views: 29.5ms | ActiveRecord: 0.0ms)
5219
+  (0.1ms) rollback transaction
5220
+  (0.1ms) begin transaction
5221
+  (0.1ms) SAVEPOINT active_record_1
5222
+ SQL (5.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged on at 2013-09-26 03:44:58 UTC"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5224
+  (0.0ms) SAVEPOINT active_record_1
5225
+ SQL (0.8ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged on at 2013-09-25 03:44:58 UTC"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5227
+  (0.0ms) SAVEPOINT active_record_1
5228
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged on at 2013-09-24 03:44:58 UTC"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5230
+ Processing by AuditRails::AuditsController#index as HTML
5231
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
5232
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
5233
+  (4.3ms) rollback transaction
5234
+  (0.1ms) begin transaction
5235
+  (0.1ms) SAVEPOINT active_record_1
5236
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged on at 2013-09-26 03:44:58 UTC"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5238
+  (0.0ms) SAVEPOINT active_record_1
5239
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged on at 2013-09-25 03:44:58 UTC"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5241
+  (0.1ms) SAVEPOINT active_record_1
5242
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged on at 2013-09-24 03:44:58 UTC"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5244
+ Processing by AuditRails::AuditsController#index as XLS
5245
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
5246
+ Sent data audits.xls (22.9ms)
5247
+ Completed 200 OK in 35ms (Views: 22.8ms | ActiveRecord: 0.1ms)
5248
+  (0.4ms) rollback transaction
5249
+  (0.1ms) begin transaction
5250
+ Processing by AuditRails::AuditsController#create as HTML
5251
+  (0.0ms) SAVEPOINT active_record_1
5252
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5254
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
5255
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5256
+  (0.3ms) rollback transaction
5257
+  (0.1ms) begin transaction
5258
+  (0.1ms) rollback transaction
5259
+  (0.0ms) begin transaction
5260
+  (0.0ms) rollback transaction
5261
+  (0.0ms) begin transaction
5262
+  (0.1ms) rollback transaction
5263
+  (0.1ms) begin transaction
5264
+ Processing by AnonymousController#login as HTML
5265
+ Parameters: {"id"=>"1"}
5266
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5267
+  (0.0ms) SAVEPOINT active_record_1
5268
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", "User logged in"], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5270
+ Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.6ms)
5271
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5272
+  (0.5ms) rollback transaction
5273
+  (0.1ms) begin transaction
5274
+  (0.1ms) SAVEPOINT active_record_1
5275
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5277
+  (0.0ms) SAVEPOINT active_record_1
5278
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5280
+  (0.0ms) SAVEPOINT active_record_1
5281
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5283
+  (0.0ms) SAVEPOINT active_record_1
5284
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5286
+  (0.0ms) SAVEPOINT active_record_1
5287
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5289
+  (0.0ms) SAVEPOINT active_record_1
5290
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5292
+  (0.1ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
5293
+  (0.3ms) rollback transaction
5294
+  (0.1ms) begin transaction
5295
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5296
+  (0.0ms) rollback transaction
5297
+  (0.1ms) begin transaction
5298
+  (0.0ms) SAVEPOINT active_record_1
5299
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5301
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5302
+  (0.3ms) rollback transaction
5303
+  (0.1ms) begin transaction
5304
+  (0.0ms) SAVEPOINT active_record_1
5305
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5307
+  (0.0ms) SAVEPOINT active_record_1
5308
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5310
+  (0.0ms) SAVEPOINT active_record_1
5311
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5313
+  (0.0ms) SAVEPOINT active_record_1
5314
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5316
+  (0.0ms) SAVEPOINT active_record_1
5317
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "John Smith"]]
5318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5319
+  (0.0ms) SAVEPOINT active_record_1
5320
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 03:44:58 UTC +00:00], ["user_name", "Fake User"]]
5321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5322
+  (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
5323
+  (0.3ms) rollback transaction
5324
+ Connecting to database specified by database.yml
5325
+  (0.3ms) begin transaction
5326
+ Processing by AnonymousController#login as HTML
5327
+ Parameters: {"id"=>"1"}
5328
+  (1.4ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5329
+  (0.1ms) SAVEPOINT active_record_1
5330
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Fri, 27 Sep 2013 17:00:43 UTC +00:00], ["description", "User logged in"], ["updated_at", Fri, 27 Sep 2013 17:00:43 UTC +00:00], ["user_name", "Fake User"]]
5331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5332
+ Rendered text template (0.0ms)
5333
+ Completed 200 OK in 52ms (Views: 11.3ms | ActiveRecord: 3.8ms)
5334
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5335
+  (0.3ms) rollback transaction
5336
+  (0.1ms) begin transaction
5337
+  (0.1ms) SAVEPOINT active_record_1
5338
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", "User logged on at 2013-09-26 17:00:44 UTC"], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5340
+  (0.0ms) SAVEPOINT active_record_1
5341
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", "User logged on at 2013-09-25 17:00:44 UTC"], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5343
+  (0.0ms) SAVEPOINT active_record_1
5344
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", "User logged on at 2013-09-24 17:00:44 UTC"], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5346
+ Processing by AuditRails::AuditsController#index as HTML
5347
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
5348
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms)
5349
+  (0.3ms) rollback transaction
5350
+  (0.1ms) begin transaction
5351
+  (0.0ms) SAVEPOINT active_record_1
5352
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", "User logged on at 2013-09-26 17:00:44 UTC"], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5354
+  (0.0ms) SAVEPOINT active_record_1
5355
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", "User logged on at 2013-09-25 17:00:44 UTC"], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5357
+  (0.0ms) SAVEPOINT active_record_1
5358
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", "User logged on at 2013-09-24 17:00:44 UTC"], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5360
+ Processing by AuditRails::AuditsController#index as XLS
5361
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
5362
+ Sent data audits.xls (0.5ms)
5363
+ Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 0.1ms)
5364
+  (0.5ms) rollback transaction
5365
+  (0.1ms) begin transaction
5366
+ Processing by AuditRails::AuditsController#analytics as HTML
5367
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
5368
+  (0.1ms) rollback transaction
5369
+  (0.1ms) begin transaction
5370
+ Processing by AuditRails::AuditsController#create as HTML
5371
+  (0.1ms) SAVEPOINT active_record_1
5372
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5374
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
5375
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5376
+  (0.4ms) rollback transaction
5377
+  (0.1ms) begin transaction
5378
+  (0.1ms) rollback transaction
5379
+  (0.1ms) begin transaction
5380
+  (0.1ms) rollback transaction
5381
+  (0.0ms) begin transaction
5382
+  (0.0ms) rollback transaction
5383
+  (0.0ms) begin transaction
5384
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5385
+  (0.0ms) rollback transaction
5386
+  (0.0ms) begin transaction
5387
+  (0.0ms) SAVEPOINT active_record_1
5388
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5390
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-27 00:00:00.000000' AND '2013-09-27 23:59:59.999999')
5391
+  (0.3ms) rollback transaction
5392
+  (0.1ms) begin transaction
5393
+  (0.1ms) SAVEPOINT active_record_1
5394
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5396
+  (0.0ms) SAVEPOINT active_record_1
5397
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5399
+  (0.1ms) SAVEPOINT active_record_1
5400
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5402
+  (0.0ms) SAVEPOINT active_record_1
5403
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5405
+  (0.0ms) SAVEPOINT active_record_1
5406
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5408
+  (0.0ms) SAVEPOINT active_record_1
5409
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5411
+  (0.1ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
5412
+  (0.4ms) rollback transaction
5413
+  (0.1ms) begin transaction
5414
+  (0.1ms) SAVEPOINT active_record_1
5415
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5417
+  (0.0ms) SAVEPOINT active_record_1
5418
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5420
+  (0.0ms) SAVEPOINT active_record_1
5421
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5423
+  (0.0ms) SAVEPOINT active_record_1
5424
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5426
+  (0.0ms) SAVEPOINT active_record_1
5427
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "John Smith"]]
5428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5429
+  (0.0ms) SAVEPOINT active_record_1
5430
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["description", nil], ["updated_at", Fri, 27 Sep 2013 17:00:44 UTC +00:00], ["user_name", "Fake User"]]
5431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5432
+  (0.1ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
5433
+  (0.4ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audit_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gourav Tiwari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
11
+ date: 2013-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -202,7 +202,7 @@ extra_rdoc_files: []
202
202
  files:
203
203
  - app/assets/javascripts/audit_rails/application.js
204
204
  - app/assets/javascripts/audit_rails/audit.js
205
- - app/assets/javascripts/Chart.min.js
205
+ - app/assets/javascripts/audit_rails/Chart.min.js
206
206
  - app/assets/stylesheets/audit_rails/application.css
207
207
  - app/assets/stylesheets/audit_rails/scaffold.css
208
208
  - app/controllers/audit_rails/application_controller.rb
@@ -223,7 +223,7 @@ files:
223
223
  - lib/tasks/audit_rails_tasks.rake
224
224
  - MIT-LICENSE
225
225
  - Rakefile
226
- - README.rdoc
226
+ - README.md
227
227
  - spec/controllers/audit_rails/application_controller_spec.rb
228
228
  - spec/controllers/audit_rails/audits_controller_spec.rb
229
229
  - spec/dummy/app/assets/javascripts/application.js
@@ -1,85 +0,0 @@
1
- = AuditRails
2
- {<img src="https://badge.fury.io/rb/audit_rails.png" alt="Gem Version" />}[http://badge.fury.io/rb/audit_rails]
3
-
4
- An action based auditor, which has internal as well as outgoing link tracking.
5
-
6
- Now also has analytics(charts) for User counts
7
-
8
- It is inspired from many great audit gems in rails community that audits model and I was looking for a gem which can audit based on actions as well as can audit link tracking. This gem just serve this purpose.
9
-
10
- Roughly it is doing similar to what Omniture does, but has very minimum features for now.
11
-
12
- = Build Status
13
- {<img src="https://travis-ci.org/gouravtiwari/audit_rails.png" />}[https://travis-ci.org/gouravtiwari/audit_rails]
14
-
15
- = Pre-requisites:
16
- For rails 3.x.x and ruby>1.9.2:
17
-
18
- gem install audit_rails
19
-
20
- or in application’s Gemfile add:
21
-
22
- gem ‘audit_rails’
23
-
24
- = Install
25
-
26
- rails g audit_rails:install
27
-
28
- = Usage
29
- === To add audit migration:
30
-
31
- rake audit_rails:install:migrations
32
-
33
- === Add audit.js to application.js file:
34
-
35
- //= require audit_rails/audit
36
-
37
- === To add additional attributes to Audit (let's say book_id):
38
- 1. Add attributes to migration generated from above rake task
39
- 2. Inherit from AuditRails::Audit:
40
- #MyApp/app/models/audit.rb
41
- class Audit < AuditRails::Audit
42
- attr_accessible :action, :controller, :description, :user_name,
43
- :book_id
44
-
45
- #add associations as usual:
46
- belongs_to :book
47
- end
48
-
49
- === To log user events
50
- Simply call 'add_to_audit' with desired parameters in any controller (as this is now a helper method included in application_controller.rb of application)
51
-
52
- === To override controller's add_to_audit method (or the helper method)
53
- Simply re-implement in application_controller.rb
54
-
55
- === To track user login (one per day)
56
- Override current_user method in application controller, e.g.:
57
- def current_user
58
- add_to_audit('login', 'sessions', "John Smith")
59
- super
60
- end
61
-
62
- === To see all audits
63
- Go to <app-url>/audit_rails/audits
64
-
65
- === To see Analytics
66
- Go to <app-url>/audit_rails/audits/analytics
67
-
68
- === To download the audit report as xls file:
69
- * Add this to initializers/mime_types.rb
70
- Mime::Type.register "application/vnd.ms-excel", :xls
71
-
72
- * Use below link in views:
73
- link_to audit_rails.audits_path(:format => "xls")
74
-
75
- = Changelog
76
- https://github.com/gouravtiwari/audit_rails/blob/master/CHANGELOG.rdoc
77
-
78
- = Contribute
79
-
80
- You are welcome to contribute and add more feature to this gem. I have added rspec and guard to it to run tests quickly. So running specs shouldn't be a problem.
81
-
82
- Please fork it, add specs and send a pull request!
83
-
84
- = License
85
- This project rocks and uses MIT-LICENSE.