audit_rails 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa2ad730b90d4659ec48f04d9387d0220929b476
4
- data.tar.gz: 2891a2e2b4af6f0837262f9a0e8af375f849a5fe
3
+ metadata.gz: 32a605ce6f8dbf452f1bdc812de6db0ac790fa6b
4
+ data.tar.gz: 43ac621d3ef32c22c187fe76c356521af645291a
5
5
  SHA512:
6
- metadata.gz: f412953c583849472f11deee49576268000998eed87d32ae9b3d14c3c8083ab709679d7c168d4023089f8ee42e5c54159cc4e771d6b3d3913fc38287c3322c80
7
- data.tar.gz: 5320ff870b7adb3a086a930714f6052508017b4778387c89b8cb5956138fd0671ac47915bc93567254949fcda60b993fc82f8f892b74ab1fce818b8336f0fe9c
6
+ metadata.gz: 3f57299e2730aa8d553dedad17e94d0786d64143e7291505070a7212aa15ade2e25b87e482508c8208a80c83c3f1ef76c926daed01bb074abedbb4abe8f47fdc
7
+ data.tar.gz: 4e21a0a5ac4010951cb3327a8f017c822ff8ad51e29f1248b6964c58227a2d85280f42be4dfdb9664ecfacf908d94e25eb36b3fd8ba3a5879e76028a339a3955
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## AuditRails
2
- [![Gem Version](https://badge.fury.io/rb/audit_rails.png)](http://badge.fury.io/rb/audit_rails)
2
+ [![Gem Version](https://badge.fury.io/rb/audit_rails.png)](http://badge.fury.io/rb/audit_rails)[![Build Status](https://travis-ci.org/gouravtiwari/audit_rails.png?branch=master)](https://travis-ci.org/gouravtiwari/audit_rails)[![Coverage Status](https://coveralls.io/repos/gouravtiwari/audit_rails/badge.png?branch=master)](https://coveralls.io/r/gouravtiwari/audit_rails?branch=master)
3
3
 
4
4
  An action based auditor, which has internal as well as outgoing link tracking.
5
5
 
@@ -10,13 +10,8 @@ Roughly it is doing similar to what Omniture does, but has very minimum features
10
10
  Now also has analytics(charts) for User counts
11
11
 
12
12
  #### User visit & page view count by date range:
13
- ![Audits](https://github.com/gouravtiwari/audit_rails/raw/master/docs/audit-rails.png)
13
+ ![Audits](https://github.com/gouravtiwari/audit_rails/raw/master/docs/audit-rails.png)
14
14
 
15
- ![User visit](https://github.com/gouravtiwari/audit_rails/raw/master/docs/user-clicks.png)
16
- ![Page Views](https://github.com/gouravtiwari/audit_rails/raw/master/docs/page-views.png)
17
-
18
- ### Build Status
19
- [![Build Status](https://travis-ci.org/gouravtiwari/audit_rails.png?branch=master)](https://travis-ci.org/gouravtiwari/audit_rails)[![Coverage Status](https://coveralls.io/repos/gouravtiwari/audit_rails/badge.png?branch=master)](https://coveralls.io/r/gouravtiwari/audit_rails?branch=master)
20
15
 
21
16
  ### Pre-requisites:
22
17
  For rails 4.0 & 3.2.6 + and ruby>1.9.2:
@@ -17,6 +17,8 @@ module AuditRails
17
17
  }
18
18
 
19
19
  scope :reverse_chronological, ->{order('created_at DESC')}
20
+ scope :group_by_controller_action, ->{group([:controller, :action])}
21
+ scope :group_by_user_name, ->{group('user_name')}
20
22
 
21
23
  def self.no_audit_entry_for_today?(action_name, user_name)
22
24
  audits = where(action: action_name, user_name: user_name,
@@ -26,11 +28,11 @@ module AuditRails
26
28
  end
27
29
 
28
30
  def self.analysis_by_user_name
29
- count(group: 'user_name')
31
+ group_by_user_name.count
30
32
  end
31
33
 
32
34
  def self.analysis_by_page_views
33
- count(group: 'controller,action')
35
+ group_by_controller_action.count
34
36
  end
35
37
  end
36
38
  end
@@ -1,3 +1,3 @@
1
1
  module AuditRails
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
@@ -16234,3 +16234,546 @@ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16234
16234
   (0.0ms) RELEASE SAVEPOINT active_record_1
16235
16235
   (0.0ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
16236
16236
   (0.0ms) rollback transaction
16237
+ Connecting to database specified by database.yml
16238
+  (0.3ms) begin transaction
16239
+  (0.0ms) SAVEPOINT active_record_1
16240
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 28 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged on at 2013-10-28 17:19:57 UTC"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16242
+  (0.0ms) SAVEPOINT active_record_1
16243
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 27 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged on at 2013-10-27 17:19:57 UTC"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16245
+  (0.0ms) SAVEPOINT active_record_1
16246
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sat, 26 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged on at 2013-10-26 17:19:57 UTC"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16248
+ Processing by AuditRails::AuditsController#index as HTML
16249
+ Rendered /Users/gouravtiwari/audit_rails/app/views/audit_rails/audits/index.html.erb within layouts/audit_rails/application (0.0ms)
16250
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16251
+ AuditRails::Audit Load (0.0ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" ORDER BY created_at DESC
16252
+  (0.0ms) rollback transaction
16253
+  (0.1ms) begin transaction
16254
+  (0.0ms) SAVEPOINT active_record_1
16255
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 28 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged on at 2013-10-28 17:19:57 UTC"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16257
+  (0.0ms) SAVEPOINT active_record_1
16258
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 27 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged on at 2013-10-27 17:19:57 UTC"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16260
+  (0.0ms) SAVEPOINT active_record_1
16261
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sat, 26 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged on at 2013-10-26 17:19:57 UTC"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16263
+ Processing by AuditRails::AuditsController#index as XLS
16264
+ AuditRails::Audit Load (0.0ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" ORDER BY created_at DESC
16265
+ Sent data audits.xls (0.0ms)
16266
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16267
+  (0.0ms) rollback transaction
16268
+  (0.1ms) begin transaction
16269
+ Processing by AuditRails::AuditsController#create as HTML
16270
+  (0.0ms) SAVEPOINT active_record_1
16271
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16273
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16274
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16275
+  (0.0ms) rollback transaction
16276
+  (0.1ms) begin transaction
16277
+  (0.0ms) rollback transaction
16278
+  (0.0ms) begin transaction
16279
+  (0.0ms) rollback transaction
16280
+  (0.0ms) begin transaction
16281
+  (0.0ms) rollback transaction
16282
+  (0.0ms) begin transaction
16283
+ Processing by AuditRails::AuditsController#analytics as HTML
16284
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits"
16285
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16286
+  (0.0ms) rollback transaction
16287
+  (0.1ms) begin transaction
16288
+  (0.0ms) SAVEPOINT active_record_1
16289
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16291
+  (0.0ms) SAVEPOINT active_record_1
16292
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16294
+  (0.0ms) SAVEPOINT active_record_1
16295
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16297
+  (0.0ms) SAVEPOINT active_record_1
16298
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-27 17:19:57.242980' WHERE "audit_rails_audits"."id" = 1
16299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16300
+  (0.0ms) SAVEPOINT active_record_1
16301
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-26 17:19:57.242980' WHERE "audit_rails_audits"."id" = 2
16302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16303
+  (0.0ms) SAVEPOINT active_record_1
16304
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-24 17:19:57.242980' WHERE "audit_rails_audits"."id" = 3
16305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16306
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '2013-10-25 00:00:00.000000' AND '2013-10-28 23:59:59.999999')
16307
+  (0.0ms) rollback transaction
16308
+  (0.1ms) begin transaction
16309
+  (0.0ms) SAVEPOINT active_record_1
16310
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16312
+  (0.0ms) SAVEPOINT active_record_1
16313
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16315
+  (0.0ms) SAVEPOINT active_record_1
16316
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16318
+  (0.0ms) SAVEPOINT active_record_1
16319
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-27 17:19:57.256574' WHERE "audit_rails_audits"."id" = 1
16320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16321
+  (0.0ms) SAVEPOINT active_record_1
16322
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-26 17:19:57.256574' WHERE "audit_rails_audits"."id" = 2
16323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16324
+  (0.0ms) SAVEPOINT active_record_1
16325
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-24 17:19:57.256574' WHERE "audit_rails_audits"."id" = 3
16326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16327
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '1970-01-01 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16328
+  (0.0ms) rollback transaction
16329
+  (0.1ms) begin transaction
16330
+  (0.0ms) SAVEPOINT active_record_1
16331
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16333
+  (0.0ms) SAVEPOINT active_record_1
16334
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16336
+  (0.0ms) SAVEPOINT active_record_1
16337
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16339
+  (0.0ms) SAVEPOINT active_record_1
16340
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-27 17:19:57.269215' WHERE "audit_rails_audits"."id" = 1
16341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16342
+  (0.0ms) SAVEPOINT active_record_1
16343
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-26 17:19:57.269215' WHERE "audit_rails_audits"."id" = 2
16344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16345
+  (0.0ms) SAVEPOINT active_record_1
16346
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-24 17:19:57.269215' WHERE "audit_rails_audits"."id" = 3
16347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16348
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '2013-10-25 00:00:00.000000' AND '2013-10-28 23:59:59.999999')
16349
+  (0.0ms) rollback transaction
16350
+  (0.1ms) begin transaction
16351
+  (0.0ms) SAVEPOINT active_record_1
16352
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16354
+  (0.0ms) SAVEPOINT active_record_1
16355
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16357
+  (0.0ms) SAVEPOINT active_record_1
16358
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16360
+  (0.0ms) SAVEPOINT active_record_1
16361
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16363
+  (0.0ms) SAVEPOINT active_record_1
16364
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16366
+  (0.0ms) SAVEPOINT active_record_1
16367
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16369
+  (0.0ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
16370
+  (0.0ms) rollback transaction
16371
+  (0.1ms) begin transaction
16372
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16373
+  (0.0ms) rollback transaction
16374
+  (0.1ms) begin transaction
16375
+  (0.0ms) SAVEPOINT active_record_1
16376
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16378
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16379
+  (0.0ms) rollback transaction
16380
+  (0.1ms) begin transaction
16381
+  (0.0ms) SAVEPOINT active_record_1
16382
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16384
+  (0.0ms) SAVEPOINT active_record_1
16385
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16387
+  (0.0ms) SAVEPOINT active_record_1
16388
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16390
+  (0.0ms) SAVEPOINT active_record_1
16391
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16393
+  (0.0ms) SAVEPOINT active_record_1
16394
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "John Smith"]]
16395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16396
+  (0.0ms) SAVEPOINT active_record_1
16397
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16399
+  (0.0ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
16400
+  (0.0ms) rollback transaction
16401
+  (0.1ms) begin transaction
16402
+ Processing by AnonymousController#login as HTML
16403
+ Parameters: {"id"=>"1"}
16404
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16405
+  (0.0ms) SAVEPOINT active_record_1
16406
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["description", "User logged in"], ["updated_at", Tue, 29 Oct 2013 17:19:57 UTC +00:00], ["user_name", "Fake User"]]
16407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16408
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16409
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16410
+  (0.0ms) rollback transaction
16411
+ Connecting to database specified by database.yml
16412
+  (0.3ms) begin transaction
16413
+  (0.0ms) rollback transaction
16414
+ Connecting to database specified by database.yml
16415
+  (0.3ms) begin transaction
16416
+  (0.0ms) rollback transaction
16417
+ Connecting to database specified by database.yml
16418
+  (0.3ms) begin transaction
16419
+  (0.0ms) rollback transaction
16420
+ Connecting to database specified by database.yml
16421
+  (0.3ms) begin transaction
16422
+  (0.0ms) rollback transaction
16423
+ Connecting to database specified by database.yml
16424
+  (0.3ms) begin transaction
16425
+  (0.0ms) rollback transaction
16426
+ Connecting to database specified by database.yml
16427
+  (0.3ms) begin transaction
16428
+  (0.0ms) SAVEPOINT active_record_1
16429
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 28 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged on at 2013-10-28 17:29:09 UTC"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16431
+  (0.0ms) SAVEPOINT active_record_1
16432
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 27 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged on at 2013-10-27 17:29:09 UTC"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16434
+  (0.0ms) SAVEPOINT active_record_1
16435
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sat, 26 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged on at 2013-10-26 17:29:09 UTC"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16437
+ Processing by AuditRails::AuditsController#index as XLS
16438
+ AuditRails::Audit Load (0.0ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" ORDER BY created_at DESC
16439
+ Rendered text template (0.0ms)
16440
+ Sent data audits.xls (0.0ms)
16441
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16442
+  (0.0ms) rollback transaction
16443
+  (0.1ms) begin transaction
16444
+  (0.0ms) SAVEPOINT active_record_1
16445
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 28 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged on at 2013-10-28 17:29:09 UTC"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16447
+  (0.0ms) SAVEPOINT active_record_1
16448
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 27 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged on at 2013-10-27 17:29:09 UTC"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16450
+  (0.0ms) SAVEPOINT active_record_1
16451
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sat, 26 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged on at 2013-10-26 17:29:09 UTC"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16453
+ Processing by AuditRails::AuditsController#index as HTML
16454
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16455
+ AuditRails::Audit Load (0.0ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" ORDER BY created_at DESC
16456
+  (0.0ms) rollback transaction
16457
+  (0.1ms) begin transaction
16458
+  (0.0ms) rollback transaction
16459
+  (0.0ms) begin transaction
16460
+  (0.0ms) rollback transaction
16461
+  (0.0ms) begin transaction
16462
+  (0.0ms) rollback transaction
16463
+  (0.0ms) begin transaction
16464
+ Processing by AuditRails::AuditsController#create as HTML
16465
+  (0.0ms) SAVEPOINT active_record_1
16466
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16468
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16469
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16470
+  (0.0ms) rollback transaction
16471
+  (0.1ms) begin transaction
16472
+ Processing by AuditRails::AuditsController#analytics as HTML
16473
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits"
16474
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16475
+  (0.0ms) rollback transaction
16476
+  (0.1ms) begin transaction
16477
+ Processing by AnonymousController#login as HTML
16478
+ Parameters: {"id"=>"1"}
16479
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16480
+  (0.0ms) SAVEPOINT active_record_1
16481
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", "User logged in"], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16483
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16484
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16485
+  (0.0ms) rollback transaction
16486
+  (0.1ms) begin transaction
16487
+  (0.0ms) rollback transaction
16488
+  (0.1ms) begin transaction
16489
+  (0.0ms) SAVEPOINT active_record_1
16490
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16492
+  (0.0ms) SAVEPOINT active_record_1
16493
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16495
+  (0.0ms) SAVEPOINT active_record_1
16496
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16498
+  (0.0ms) SAVEPOINT active_record_1
16499
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-27 17:29:09.566676' WHERE "audit_rails_audits"."id" = 1
16500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16501
+  (0.0ms) SAVEPOINT active_record_1
16502
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-26 17:29:09.566676' WHERE "audit_rails_audits"."id" = 2
16503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16504
+  (0.0ms) SAVEPOINT active_record_1
16505
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-24 17:29:09.566676' WHERE "audit_rails_audits"."id" = 3
16506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16507
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '2013-10-25 00:00:00.000000' AND '2013-10-28 23:59:59.999999')
16508
+  (0.0ms) rollback transaction
16509
+  (0.1ms) begin transaction
16510
+  (0.0ms) SAVEPOINT active_record_1
16511
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16513
+  (0.0ms) SAVEPOINT active_record_1
16514
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16516
+  (0.0ms) SAVEPOINT active_record_1
16517
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16519
+  (0.0ms) SAVEPOINT active_record_1
16520
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-27 17:29:09.585287' WHERE "audit_rails_audits"."id" = 1
16521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16522
+  (0.0ms) SAVEPOINT active_record_1
16523
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-26 17:29:09.585287' WHERE "audit_rails_audits"."id" = 2
16524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16525
+  (0.0ms) SAVEPOINT active_record_1
16526
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-24 17:29:09.585287' WHERE "audit_rails_audits"."id" = 3
16527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16528
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '2013-10-25 00:00:00.000000' AND '2013-10-28 23:59:59.999999')
16529
+  (0.0ms) rollback transaction
16530
+  (0.1ms) begin transaction
16531
+  (0.0ms) SAVEPOINT active_record_1
16532
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16534
+  (0.0ms) SAVEPOINT active_record_1
16535
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16537
+  (0.0ms) SAVEPOINT active_record_1
16538
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16540
+  (0.0ms) SAVEPOINT active_record_1
16541
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-27 17:29:09.601727' WHERE "audit_rails_audits"."id" = 1
16542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16543
+  (0.0ms) SAVEPOINT active_record_1
16544
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-26 17:29:09.601727' WHERE "audit_rails_audits"."id" = 2
16545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16546
+  (0.0ms) SAVEPOINT active_record_1
16547
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-10-24 17:29:09.601727' WHERE "audit_rails_audits"."id" = 3
16548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16549
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '1970-01-01 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16550
+  (0.0ms) rollback transaction
16551
+  (0.1ms) begin transaction
16552
+  (0.0ms) SAVEPOINT active_record_1
16553
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16555
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16556
+  (0.0ms) rollback transaction
16557
+  (0.1ms) begin transaction
16558
+  (0.0ms) 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-10-29 00:00:00.000000' AND '2013-10-29 23:59:59.999999')
16559
+  (0.0ms) rollback transaction
16560
+  (0.0ms) begin transaction
16561
+  (0.0ms) SAVEPOINT active_record_1
16562
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16564
+  (0.0ms) SAVEPOINT active_record_1
16565
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16567
+  (0.0ms) SAVEPOINT active_record_1
16568
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16570
+  (0.0ms) SAVEPOINT active_record_1
16571
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16573
+  (0.0ms) SAVEPOINT active_record_1
16574
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16576
+  (0.0ms) SAVEPOINT active_record_1
16577
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16579
+  (0.0ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
16580
+  (0.0ms) rollback transaction
16581
+  (0.0ms) begin transaction
16582
+  (0.0ms) SAVEPOINT active_record_1
16583
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16585
+  (0.0ms) SAVEPOINT active_record_1
16586
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16588
+  (0.0ms) SAVEPOINT active_record_1
16589
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16591
+  (0.0ms) SAVEPOINT active_record_1
16592
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16594
+  (0.0ms) SAVEPOINT active_record_1
16595
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "John Smith"]]
16596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16597
+  (0.0ms) SAVEPOINT active_record_1
16598
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Oct 2013 17:29:09 UTC +00:00], ["user_name", "Fake User"]]
16599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16600
+  (0.0ms) SELECT COUNT(*) AS count_all, controller,action AS controller_action FROM "audit_rails_audits" GROUP BY controller,action
16601
+  (0.0ms) rollback transaction
16602
+ Connecting to database specified by database.yml
16603
+  (0.3ms) begin transaction
16604
+  (0.0ms) rollback transaction
16605
+ Connecting to database specified by database.yml
16606
+  (0.3ms) begin transaction
16607
+  (0.0ms) rollback transaction
16608
+  (0.1ms) begin transaction
16609
+ Processing by AnonymousController#login as HTML
16610
+ Parameters: {"id"=>"1"}
16611
+  (0.0ms) 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-11-09 00:00:00.000000' AND '2013-11-09 23:59:59.999999')
16612
+  (0.0ms) SAVEPOINT active_record_1
16613
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged in"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16615
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16616
+  (0.0ms) 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-11-09 00:00:00.000000' AND '2013-11-09 23:59:59.999999')
16617
+  (0.0ms) rollback transaction
16618
+  (0.1ms) begin transaction
16619
+ Processing by AuditRails::AuditsController#create as HTML
16620
+  (0.0ms) SAVEPOINT active_record_1
16621
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16623
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16624
+  (0.0ms) 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-11-09 00:00:00.000000' AND '2013-11-09 23:59:59.999999')
16625
+  (0.0ms) rollback transaction
16626
+  (0.1ms) begin transaction
16627
+  (0.0ms) rollback transaction
16628
+  (0.1ms) begin transaction
16629
+  (0.0ms) rollback transaction
16630
+  (0.0ms) begin transaction
16631
+  (0.0ms) rollback transaction
16632
+  (0.0ms) begin transaction
16633
+  (0.0ms) SAVEPOINT active_record_1
16634
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 08 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged on at 2013-11-08 07:43:11 UTC"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16636
+  (0.0ms) SAVEPOINT active_record_1
16637
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 07 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged on at 2013-11-07 07:43:11 UTC"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16639
+  (0.0ms) SAVEPOINT active_record_1
16640
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 06 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged on at 2013-11-06 07:43:11 UTC"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16642
+ Processing by AuditRails::AuditsController#index as HTML
16643
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16644
+ AuditRails::Audit Load (0.0ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" ORDER BY created_at DESC
16645
+  (0.0ms) rollback transaction
16646
+  (0.1ms) begin transaction
16647
+  (0.0ms) SAVEPOINT active_record_1
16648
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Fri, 08 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged on at 2013-11-08 07:43:11 UTC"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16650
+  (0.0ms) SAVEPOINT active_record_1
16651
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Thu, 07 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged on at 2013-11-07 07:43:11 UTC"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16653
+  (0.0ms) SAVEPOINT active_record_1
16654
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Wed, 06 Nov 2013 07:43:11 UTC +00:00], ["description", "User logged on at 2013-11-06 07:43:11 UTC"], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16656
+ Processing by AuditRails::AuditsController#index as XLS
16657
+ AuditRails::Audit Load (0.0ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" ORDER BY created_at DESC
16658
+ Sent data audits.xls (0.0ms)
16659
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16660
+  (0.0ms) rollback transaction
16661
+  (0.1ms) begin transaction
16662
+ Processing by AuditRails::AuditsController#analytics as HTML
16663
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" 
16664
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
16665
+  (0.0ms) rollback transaction
16666
+  (0.1ms) begin transaction
16667
+  (0.0ms) SAVEPOINT active_record_1
16668
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16670
+  (0.0ms) SAVEPOINT active_record_1
16671
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16673
+  (0.0ms) SAVEPOINT active_record_1
16674
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16676
+  (0.0ms) SAVEPOINT active_record_1
16677
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16679
+  (0.0ms) SAVEPOINT active_record_1
16680
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16682
+  (0.0ms) SAVEPOINT active_record_1
16683
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16685
+  (0.0ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
16686
+  (0.0ms) rollback transaction
16687
+  (0.1ms) begin transaction
16688
+  (0.0ms) 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-11-09 00:00:00.000000' AND '2013-11-09 23:59:59.999999')
16689
+  (0.0ms) rollback transaction
16690
+  (0.1ms) begin transaction
16691
+  (0.0ms) SAVEPOINT active_record_1
16692
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16694
+  (0.0ms) 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-11-09 00:00:00.000000' AND '2013-11-09 23:59:59.999999')
16695
+  (0.0ms) rollback transaction
16696
+  (0.1ms) begin transaction
16697
+  (0.0ms) SAVEPOINT active_record_1
16698
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16700
+  (0.0ms) SAVEPOINT active_record_1
16701
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16703
+  (0.0ms) SAVEPOINT active_record_1
16704
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16706
+  (0.0ms) SAVEPOINT active_record_1
16707
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-07 07:43:11.466667' WHERE "audit_rails_audits"."id" = 1
16708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16709
+  (0.0ms) SAVEPOINT active_record_1
16710
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-06 07:43:11.466667' WHERE "audit_rails_audits"."id" = 2
16711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16712
+  (0.0ms) SAVEPOINT active_record_1
16713
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-04 07:43:11.466667' WHERE "audit_rails_audits"."id" = 3
16714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16715
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '2013-11-05 00:00:00.000000' AND '2013-11-08 23:59:59.999999')
16716
+  (0.0ms) rollback transaction
16717
+  (0.1ms) begin transaction
16718
+  (0.0ms) SAVEPOINT active_record_1
16719
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16721
+  (0.0ms) SAVEPOINT active_record_1
16722
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16724
+  (0.0ms) SAVEPOINT active_record_1
16725
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16727
+  (0.0ms) SAVEPOINT active_record_1
16728
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-07 07:43:11.480321' WHERE "audit_rails_audits"."id" = 1
16729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16730
+  (0.0ms) SAVEPOINT active_record_1
16731
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-06 07:43:11.480321' WHERE "audit_rails_audits"."id" = 2
16732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16733
+  (0.0ms) SAVEPOINT active_record_1
16734
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-04 07:43:11.480321' WHERE "audit_rails_audits"."id" = 3
16735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16736
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '1970-01-01 00:00:00.000000' AND '2013-11-09 23:59:59.999999')
16737
+  (0.0ms) rollback transaction
16738
+  (0.1ms) begin transaction
16739
+  (0.0ms) SAVEPOINT active_record_1
16740
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16742
+  (0.0ms) SAVEPOINT active_record_1
16743
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16745
+  (0.0ms) SAVEPOINT active_record_1
16746
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16748
+  (0.0ms) SAVEPOINT active_record_1
16749
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-07 07:43:11.490926' WHERE "audit_rails_audits"."id" = 1
16750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16751
+  (0.0ms) SAVEPOINT active_record_1
16752
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-06 07:43:11.490926' WHERE "audit_rails_audits"."id" = 2
16753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16754
+  (0.0ms) SAVEPOINT active_record_1
16755
+  (0.0ms) UPDATE "audit_rails_audits" SET "created_at" = '2013-11-04 07:43:11.490926' WHERE "audit_rails_audits"."id" = 3
16756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16757
+  (0.0ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE ("audit_rails_audits"."created_at" BETWEEN '2013-11-05 00:00:00.000000' AND '2013-11-08 23:59:59.999999')
16758
+  (0.0ms) rollback transaction
16759
+  (0.1ms) begin transaction
16760
+  (0.0ms) SAVEPOINT active_record_1
16761
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16763
+  (0.0ms) SAVEPOINT active_record_1
16764
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16766
+  (0.0ms) SAVEPOINT active_record_1
16767
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16769
+  (0.0ms) SAVEPOINT active_record_1
16770
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16772
+  (0.0ms) SAVEPOINT active_record_1
16773
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "John Smith"]]
16774
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16775
+  (0.0ms) SAVEPOINT active_record_1
16776
+ SQL (0.0ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["description", nil], ["updated_at", Sat, 09 Nov 2013 07:43:11 UTC +00:00], ["user_name", "Fake User"]]
16777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16778
+  (0.0ms) SELECT COUNT(*) AS count_all, controller, action AS controller_action FROM "audit_rails_audits" GROUP BY controller, action
16779
+  (0.0ms) rollback transaction
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe AuditRails::AuditsHelper do
4
+ context 'active_class' do
5
+ it 'should return "active" when current action is "analytics"' do
6
+ controller.should_receive(:action_name).and_return('analytics')
7
+
8
+ helper.active_class('analytics').should eq('active')
9
+ end
10
+ end
11
+ end
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.8
4
+ version: 1.1.9
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-10-27 00:00:00.000000000 Z
11
+ date: 2013-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -295,6 +295,7 @@ files:
295
295
  - spec/dummy/Rakefile
296
296
  - spec/dummy/README.rdoc
297
297
  - spec/dummy/script/rails
298
+ - spec/helpers/audit_rails/audits_helper_spec.rb
298
299
  - spec/models/audit_rails/audit_spec.rb
299
300
  - spec/spec_helper.rb
300
301
  homepage: https://github.com/gouravtiwari/audit_rails
@@ -357,5 +358,6 @@ test_files:
357
358
  - spec/dummy/Rakefile
358
359
  - spec/dummy/README.rdoc
359
360
  - spec/dummy/script/rails
361
+ - spec/helpers/audit_rails/audits_helper_spec.rb
360
362
  - spec/models/audit_rails/audit_spec.rb
361
363
  - spec/spec_helper.rb