audited_views 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/audit.rb +2 -2
  3. data/app/views/application/_audit_record.html.erb +1 -1
  4. data/lib/audited_views.rb +1 -0
  5. data/lib/audited_views/version.rb +1 -1
  6. data/spec/dummy/db/test.sqlite3 +0 -0
  7. data/spec/dummy/log/test.log +231 -593
  8. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{xl/xlD5Hio6dGiAlbF6RQJSD2DLDNetsbjWSo1ENNi0jdA.cache → 3N/3NLOckzY84noY3hUEOd6K6Rfz7XB_fIRpHeGca6jXFQ.cache} +0 -0
  9. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3Y/3YWAsbouC_92KRyVIfCR1XZUL6aU5fDhsrDPZPwqLaw.cache +0 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{YJ/YJtvP__n_ITqVJFjg7SNmEV8X5LbGOz153KZHMn7A9I.cache → 6I/6IckMLuSd1VjjIlhjnTs6QHUVroN9w04mXEBy0fU6kM.cache} +0 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/AlF65aLeuD-x6AxoO6n4G93XaQ5Nx0MU1FzfD4L3cPc.cache +0 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D0/D0cNdcvMptZ90AYLZ73Y5d3iFojSVkzXX1hn78q5VSU.cache +0 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{3P/3PK7aqnTybA5wVtn4700SPNvcK6dejPg9tiLgBYBViI.cache → G3/G3NDkLlk_SX3YG7k0awtx4zjVlakoKrntN0jsjSlAhQ.cache} +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Vu/VuoeZYDVkOHSjfAnQhegAaddC_cmOg0_2-fEjwByr2g.cache → MJ/MJsVvHPcinS4hoxBd_MJ0yT7ViT4Ka6UMsRGGCuEMe0.cache} +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{v4/v4RHC934V-T5x1Nb2COYpgO8T9xMJDHUEL6q0crUZng.cache → R8/R8a1x_kIzFZki0ulOqRGqJfaA12mS9yybP1yhl5NY5Y.cache} +0 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{G3/G3-tv19JISLSSRsGC9RGYPFoKz-eJUiLX305MLBRy2I.cache → RW/RWT2LDI5Hha4SP5FZXHASQrTckyYiN2XnYmK2vdeKPE.cache} +0 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{g9/g971Klk7lTPw1fRk9VTAKO2DhIDmOMMDyij3ztCQjy8.cache → S7/S7N-OOCIx75bN-VQuGH8Bs-NEQh0ssHghH7U96EBzM0.cache} +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VO/VOse1hbRPubC1r_WKyZVcYG1tsb06PRsqYBTWSZ_4LQ.cache +0 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Q-/Q-UOgOa_LL2DWgrt0rM8RVF3jeARORAKZzpo9HQJDS4.cache → Yu/YuPHwAJY0qdk1Fb45vssLS5M3MciX-sj_cQ9baUwa9U.cache} +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{L2/L2y0YEwaUri6z1liCIMCGL4QjIm0SRdCy-uQ95Na6a8.cache → Z3/Z3JitHcVFrpH_dDIHC8wcLgBbrOFH80aMYBrF8nd4tM.cache} +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Hb/HbwMdgucEk--be2EHuRlKDWcL3k-dzQfMgpOy60OrTc.cache → Zq/ZqwqzGmQdZwugVyeWaTsoSs1I-XBgeIBtazZxC4lYZs.cache} +0 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{70/70uPUtQT3y75FopbmEz3gd0jRFdPBXxoGs6V_FqlbX0.cache → _T/_TaNU0GYb1Zzjzqn1bEXOa71HFfO3dCpQondp87sme0.cache} +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pn/pneR-xUFEeqlsU0chMbmmftc6gAsfjtjN5OaIGlKhRI.cache +0 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{9m/9m1uMOh0tNA4F013e0lQ55KsZ1mW9-DJ-P7YQ8ehjO8.cache → q3/q3odLgZNiy989rT2dGN8sh88f9cbTIlXNBsMxVm-qO4.cache} +0 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{WP/WPx0xeq-DpjAUB8Fr6PqvzYSp13C5EpZuuIVQiIfSR8.cache → qx/qxk5c2dD60rx2NJD_uhpqxuHoJLxv5XwxAZTALIICns.cache} +0 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sE/sE5I8LMVqjxu0PHdY_io7wdnYvUQnL-YQaUIk8sw-M4.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{eS/eS5Narq3MfOC-cyHoerhLMXKH4mVuSCuCUGlUBrsW-g.cache → uU/uU7MDObelvIGwP_PhyWZ3qWYsbvuSdNJGFXkYIqtCEs.cache} +0 -0
  28. data/spec/dummy/tmp/capybara/{capybara-201705072204557673614766.html → capybara-201705080935504744542394.html} +3 -3
  29. data/spec/dummy/tmp/capybara/{capybara-201705072202363033472193.html → capybara-201705080935583045830839.html} +9 -9
  30. data/spec/dummy/tmp/capybara/capybara-201705080936011266128551.html +139 -0
  31. metadata +103 -105
  32. data/spec/dummy/db/development.sqlite3 +0 -0
  33. data/spec/dummy/log/development.log +0 -154
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47781b975820493b0c4183ebc83d5ec10d30dc63
4
- data.tar.gz: 1a59ba2b3821cdae2a457128c9629efa4bb177e6
3
+ metadata.gz: 8cc2db336495229e610ddb64a5d7c53334e2f1bd
4
+ data.tar.gz: f1325bc6b96bddcd6b4334c54b99a333e14cf29c
5
5
  SHA512:
6
- metadata.gz: 7c816f7826c69b8807963ef74dbf3faadb82223304e53ef11b8d111cf184677b584cfc192d2312c384c597e355fbc60570dc766a7f2bc8b62af42589011bb137
7
- data.tar.gz: 426bf4f2d3d3f5800788669ee3f1612b1b2492cb49e44026405d197a3e8bee1a33690369a04b0d50a7e1df59982fe6b2a1d1ee76d7876b1b3a76dffb973582b3
6
+ metadata.gz: d21d9ac6783e58790486caa41c472356e908937db7d610007504bb184a5bc3c11e046388ac03144fb864997e765e2f77a363c57ab74c9c918296ec95897c931c
7
+ data.tar.gz: 2bfc81284d7d5d1a58db9cc161f387d9100dfb922b894f997cc9696453165f3c94cdf4f08d9a155122d765b4e0b7344b69d31d761fcf36c689a29f795a953e11
data/app/models/audit.rb CHANGED
@@ -1,4 +1,4 @@
1
- class Audit < ActiveRecord::Info
2
- belongs_to :user, polypmorphic: true
1
+ class Audit < ActiveRecord::Base
2
+ belongs_to :user, polymorphic: true
3
3
 
4
4
  end
@@ -25,7 +25,7 @@
25
25
  </td>
26
26
  <% if audit_record.action == "update" && audit_record.auditable_type.constantize.column_for_attribute(field.to_sym).type == :text %>
27
27
  <td colspan="2" class="diff">
28
- <%= sanitize Differ.diff(new_value, old_value).format_as(:html) %>
28
+ <%= sanitize Differ.diff(new_value.to_s, old_value.to_s).format_as(:html) %>
29
29
  </td>
30
30
  <% else %>
31
31
  <td>
data/lib/audited_views.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "audited_views/engine"
2
+ require "differ"
2
3
 
3
4
  module AuditedViews
4
5
  # Your code goes here...
@@ -1,3 +1,3 @@
1
1
  module AuditedViews
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
Binary file
@@ -1,44 +1,19 @@
1
-  (237.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2
-  (114.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
-  (130.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4
-  (0.1ms) SELECT version FROM "schema_migrations"
5
-  (241.9ms) INSERT INTO "schema_migrations" (version) VALUES (20170507023113)
6
-  (0.1ms) select sqlite_version(*)
7
-  (156.0ms) INSERT INTO "schema_migrations" (version) VALUES
8
- (20170507023018);
9
-
10
- 
11
-  (257.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
12
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
13
-  (0.0ms) begin transaction
14
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-07 18:26:06 UTC], ["updated_at", 2017-05-07 18:26:06 UTC]]
15
-  (166.7ms) commit transaction
16
- ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
17
-  (0.0ms) begin transaction
18
-  (0.0ms) commit transaction
19
-  (0.3ms) begin transaction
20
-  (0.1ms) rollback transaction
21
1
   (0.2ms) begin transaction
22
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (13.0ms)
23
-  (0.1ms) rollback transaction
24
-  (0.3ms) begin transaction
25
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (21.2ms)
26
-  (0.1ms) rollback transaction
27
-  (0.3ms) begin transaction
28
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (20.4ms)
29
-  (0.1ms) rollback transaction
30
-  (0.3ms) begin transaction
31
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (21.1ms)
32
-  (0.1ms) rollback transaction
33
-  (0.3ms) begin transaction
34
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (55.6ms)
35
2
   (0.1ms) rollback transaction
36
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37
- Migrating to InstallAudited (20170507191539)
38
3
   (0.0ms) begin transaction
39
-  (0.3ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
40
-  (0.0ms) select sqlite_version(*)
41
-  (0.1ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
4
+  (0.0ms) rollback transaction
5
+  (23.1ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
6
+  (0.1ms) select sqlite_version(*)
7
+  (8.1ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
8
+  (0.1ms)  SELECT sql
9
+ FROM sqlite_master
10
+ WHERE name='associated_index' AND type='index'
11
+ UNION ALL
12
+ SELECT sql
13
+ FROM sqlite_temp_master
14
+ WHERE name='associated_index' AND type='index'
15
+ 
16
+  (10.6ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
42
17
   (0.1ms)  SELECT sql
43
18
  FROM sqlite_master
44
19
  WHERE name='auditable_index' AND type='index'
@@ -47,8 +22,7 @@ Migrating to InstallAudited (20170507191539)
47
22
  FROM sqlite_temp_master
48
23
  WHERE name='auditable_index' AND type='index'
49
24
  
50
-  (0.1ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
51
-  (0.0ms)  SELECT sql
25
+  (0.1ms)  SELECT sql
52
26
  FROM sqlite_master
53
27
  WHERE name='associated_index' AND type='index'
54
28
  UNION ALL
@@ -56,7 +30,16 @@ Migrating to InstallAudited (20170507191539)
56
30
  FROM sqlite_temp_master
57
31
  WHERE name='associated_index' AND type='index'
58
32
  
59
-  (0.0ms)  SELECT sql
33
+  (10.7ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
34
+  (0.1ms)  SELECT sql
35
+ FROM sqlite_master
36
+ WHERE name='index_audits_on_created_at' AND type='index'
37
+ UNION ALL
38
+ SELECT sql
39
+ FROM sqlite_temp_master
40
+ WHERE name='index_audits_on_created_at' AND type='index'
41
+ 
42
+  (0.1ms)  SELECT sql
60
43
  FROM sqlite_master
61
44
  WHERE name='auditable_index' AND type='index'
62
45
  UNION ALL
@@ -64,49 +47,131 @@ Migrating to InstallAudited (20170507191539)
64
47
  FROM sqlite_temp_master
65
48
  WHERE name='auditable_index' AND type='index'
66
49
  
67
-  (0.1ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
68
50
   (0.1ms)  SELECT sql
69
51
  FROM sqlite_master
70
- WHERE name='user_index' AND type='index'
52
+ WHERE name='associated_index' AND type='index'
71
53
  UNION ALL
72
54
  SELECT sql
73
55
  FROM sqlite_temp_master
74
- WHERE name='user_index' AND type='index'
56
+ WHERE name='associated_index' AND type='index'
75
57
  
58
+  (10.3ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
76
59
   (0.1ms)  SELECT sql
77
60
  FROM sqlite_master
78
- WHERE name='associated_index' AND type='index'
61
+ WHERE name='index_audits_on_request_uuid' AND type='index'
79
62
  UNION ALL
80
63
  SELECT sql
81
64
  FROM sqlite_temp_master
82
- WHERE name='associated_index' AND type='index'
65
+ WHERE name='index_audits_on_request_uuid' AND type='index'
83
66
  
84
-  (0.0ms)  SELECT sql
67
+  (0.1ms)  SELECT sql
85
68
  FROM sqlite_master
86
- WHERE name='auditable_index' AND type='index'
69
+ WHERE name='index_audits_on_created_at' AND type='index'
87
70
  UNION ALL
88
71
  SELECT sql
89
72
  FROM sqlite_temp_master
90
- WHERE name='auditable_index' AND type='index'
73
+ WHERE name='index_audits_on_created_at' AND type='index'
91
74
  
92
-  (0.1ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
93
75
   (0.1ms)  SELECT sql
94
76
  FROM sqlite_master
95
- WHERE name='index_audits_on_request_uuid' AND type='index'
77
+ WHERE name='auditable_index' AND type='index'
96
78
  UNION ALL
97
79
  SELECT sql
98
80
  FROM sqlite_temp_master
99
- WHERE name='index_audits_on_request_uuid' AND type='index'
81
+ WHERE name='auditable_index' AND type='index'
100
82
  
101
-  (0.0ms)  SELECT sql
83
+  (0.1ms)  SELECT sql
102
84
  FROM sqlite_master
103
- WHERE name='user_index' AND type='index'
85
+ WHERE name='associated_index' AND type='index'
104
86
  UNION ALL
105
87
  SELECT sql
106
88
  FROM sqlite_temp_master
107
- WHERE name='user_index' AND type='index'
89
+ WHERE name='associated_index' AND type='index'
108
90
  
109
-  (0.0ms)  SELECT sql
91
+  (11.7ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
92
+  (12.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
93
+  (12.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
94
+  (10.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
95
+  (0.1ms) SELECT version FROM "schema_migrations"
96
+  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES (20170507191539)
97
+  (10.2ms) INSERT INTO "schema_migrations" (version) VALUES
98
+ (20170507023018),
99
+ (20170507023113);
100
+
101
+ 
102
+  (12.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
103
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
104
+  (0.1ms) begin transaction
105
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 12:35:48 UTC], ["updated_at", 2017-05-08 12:35:48 UTC]]
106
+  (11.2ms) commit transaction
107
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
108
+  (0.1ms) begin transaction
109
+  (0.0ms) commit transaction
110
+  (0.4ms) begin transaction
111
+  (0.1ms) SAVEPOINT active_record_1
112
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
114
+  (0.1ms) SAVEPOINT active_record_1
115
+ SQL (0.6ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:375b1f8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
116
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
117
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "d9a6a17e-5235-46e2-a037-474ddd818b86"], ["created_at", 2017-05-08 12:35:50 UTC]]
118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
119
+ Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
120
+ Processing by ProductsController#show as HTML
121
+ Parameters: {"id"=>"1"}
122
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
123
+ Rendering products/show.html.erb within layouts/application
124
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
125
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
126
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (21.6ms)
127
+ Rendered products/show.html.erb within layouts/application (47.4ms)
128
+ Completed 200 OK in 233ms (Views: 214.4ms | ActiveRecord: 0.5ms)
129
+  (0.2ms) rollback transaction
130
+  (0.1ms) begin transaction
131
+  (0.1ms) SAVEPOINT active_record_1
132
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
134
+  (0.1ms) SAVEPOINT active_record_1
135
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:6bbcbb8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
136
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
137
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "b4626db5-205e-411d-b256-ff38c2608cec"], ["created_at", 2017-05-08 12:35:50 UTC]]
138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139
+ Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
140
+ Processing by ProductsController#show as HTML
141
+ Parameters: {"id"=>"1"}
142
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
143
+ Rendering products/show.html.erb within layouts/application
144
+ Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
145
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
146
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.1ms)
147
+ Rendered products/show.html.erb within layouts/application (7.4ms)
148
+ Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.4ms)
149
+ Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
150
+ Processing by ProductsController#show as HTML
151
+ Parameters: {"show_log"=>"true", "id"=>"1"}
152
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
153
+ Rendering products/show.html.erb within layouts/application
154
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
155
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
156
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
157
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
158
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
159
+ Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (10.0ms)
160
+ Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (13.0ms)
161
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (20.0ms)
162
+ Rendered products/show.html.erb within layouts/application (22.6ms)
163
+ Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.7ms)
164
+  (0.2ms) rollback transaction
165
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
166
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
167
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
168
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
169
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
171
+  (14.5ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
172
+  (0.1ms) select sqlite_version(*)
173
+  (9.6ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
174
+  (0.1ms)  SELECT sql
110
175
  FROM sqlite_master
111
176
  WHERE name='associated_index' AND type='index'
112
177
  UNION ALL
@@ -114,7 +179,8 @@ Migrating to InstallAudited (20170507191539)
114
179
  FROM sqlite_temp_master
115
180
  WHERE name='associated_index' AND type='index'
116
181
  
117
-  (0.0ms)  SELECT sql
182
+  (11.6ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
183
+  (0.1ms)  SELECT sql
118
184
  FROM sqlite_master
119
185
  WHERE name='auditable_index' AND type='index'
120
186
  UNION ALL
@@ -122,36 +188,30 @@ Migrating to InstallAudited (20170507191539)
122
188
  FROM sqlite_temp_master
123
189
  WHERE name='auditable_index' AND type='index'
124
190
  
125
-  (0.1ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
126
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507191539"]]
127
-  (63.5ms) commit transaction
128
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
129
-  (0.0ms) begin transaction
130
-  (0.0ms) commit transaction
131
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
132
191
   (0.1ms)  SELECT sql
133
192
  FROM sqlite_master
134
- WHERE name='index_audits_on_created_at' AND type='index'
193
+ WHERE name='associated_index' AND type='index'
135
194
  UNION ALL
136
195
  SELECT sql
137
196
  FROM sqlite_temp_master
138
- WHERE name='index_audits_on_created_at' AND type='index'
197
+ WHERE name='associated_index' AND type='index'
139
198
  
199
+  (10.4ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
140
200
   (0.1ms)  SELECT sql
141
201
  FROM sqlite_master
142
- WHERE name='index_audits_on_request_uuid' AND type='index'
202
+ WHERE name='index_audits_on_created_at' AND type='index'
143
203
  UNION ALL
144
204
  SELECT sql
145
205
  FROM sqlite_temp_master
146
- WHERE name='index_audits_on_request_uuid' AND type='index'
206
+ WHERE name='index_audits_on_created_at' AND type='index'
147
207
  
148
208
   (0.1ms)  SELECT sql
149
209
  FROM sqlite_master
150
- WHERE name='user_index' AND type='index'
210
+ WHERE name='auditable_index' AND type='index'
151
211
  UNION ALL
152
212
  SELECT sql
153
213
  FROM sqlite_temp_master
154
- WHERE name='user_index' AND type='index'
214
+ WHERE name='auditable_index' AND type='index'
155
215
  
156
216
   (0.1ms)  SELECT sql
157
217
  FROM sqlite_master
@@ -160,8 +220,25 @@ Migrating to InstallAudited (20170507191539)
160
220
  SELECT sql
161
221
  FROM sqlite_temp_master
162
222
  WHERE name='associated_index' AND type='index'
223
+ 
224
+  (10.3ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
225
+  (0.1ms)  SELECT sql
226
+ FROM sqlite_master
227
+ WHERE name='index_audits_on_request_uuid' AND type='index'
228
+ UNION ALL
229
+ SELECT sql
230
+ FROM sqlite_temp_master
231
+ WHERE name='index_audits_on_request_uuid' AND type='index'
163
232
  
164
233
   (0.1ms)  SELECT sql
234
+ FROM sqlite_master
235
+ WHERE name='index_audits_on_created_at' AND type='index'
236
+ UNION ALL
237
+ SELECT sql
238
+ FROM sqlite_temp_master
239
+ WHERE name='index_audits_on_created_at' AND type='index'
240
+ 
241
+  (0.2ms)  SELECT sql
165
242
  FROM sqlite_master
166
243
  WHERE name='auditable_index' AND type='index'
167
244
  UNION ALL
@@ -169,579 +246,140 @@ Migrating to InstallAudited (20170507191539)
169
246
  FROM sqlite_temp_master
170
247
  WHERE name='auditable_index' AND type='index'
171
248
  
172
-  (0.3ms) begin transaction
173
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (41.1ms)
174
-  (0.1ms) rollback transaction
175
-  (0.3ms) begin transaction
176
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (20.8ms)
177
-  (0.1ms) rollback transaction
178
-  (0.3ms) begin transaction
179
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (27.8ms)
180
-  (0.1ms) rollback transaction
181
-  (0.3ms) begin transaction
182
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (20.7ms)
183
-  (0.1ms) rollback transaction
184
-  (0.3ms) begin transaction
185
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (21.9ms)
186
-  (0.1ms) rollback transaction
187
-  (0.8ms) begin transaction
188
-  (0.1ms) rollback transaction
189
-  (0.1ms) begin transaction
190
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (42.4ms)
191
-  (0.2ms) rollback transaction
192
-  (0.7ms) begin transaction
193
- Started GET "/products" for 127.0.0.1 at 2017-05-07 16:43:51 -0300
194
- Processing by ProductsController#index as HTML
195
- Rendering products/index.html.erb within layouts/application
196
- Product Load (2.1ms) SELECT "products".* FROM "products"
197
- Rendered products/index.html.erb within layouts/application (61.9ms)
198
- Completed 200 OK in 244ms (Views: 234.5ms | ActiveRecord: 2.8ms)
199
-  (0.1ms) rollback transaction
200
-  (0.0ms) begin transaction
201
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (13.6ms)
202
-  (0.1ms) rollback transaction
203
-  (0.3ms) begin transaction
204
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (19.1ms)
205
-  (0.1ms) rollback transaction
206
-  (0.0ms) begin transaction
207
-  (0.0ms) rollback transaction
208
-  (0.3ms) begin transaction
209
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (19.1ms)
210
-  (0.1ms) rollback transaction
211
-  (0.0ms) begin transaction
212
-  (0.0ms) rollback transaction
213
-  (0.3ms) begin transaction
214
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (20.8ms)
215
-  (0.1ms) rollback transaction
216
-  (0.0ms) begin transaction
217
-  (0.0ms) rollback transaction
218
-  (0.3ms) begin transaction
219
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (31.5ms)
220
-  (0.1ms) rollback transaction
221
-  (0.1ms) begin transaction
222
-  (0.0ms) rollback transaction
223
-  (0.3ms) begin transaction
224
-  (0.2ms) rollback transaction
225
-  (0.1ms) begin transaction
226
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (28.6ms)
227
-  (0.1ms) rollback transaction
228
-  (0.3ms) begin transaction
229
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (24.7ms)
230
-  (0.1ms) rollback transaction
231
-  (0.1ms) begin transaction
232
-  (0.2ms) rollback transaction
233
-  (0.3ms) begin transaction
234
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (22.5ms)
235
-  (0.1ms) rollback transaction
236
-  (0.1ms) begin transaction
237
-  (0.0ms) SAVEPOINT active_record_1
238
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:26a12b8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-07 20:05:17 UTC], ["updated_at", 2017-05-07 20:05:17 UTC]]
239
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
240
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "323fecf6-f855-4ee8-9581-d463c45e81e1"], ["created_at", 2017-05-07 20:05:17 UTC]]
241
-  (0.0ms) RELEASE SAVEPOINT active_record_1
242
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 17:05:17 -0300
243
- Processing by ProductsController#show as HTML
244
- Parameters: {"id"=>"1"}
245
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
246
- Rendering products/show.html.erb within layouts/application
247
- Rendered products/show.html.erb within layouts/application (24.0ms)
248
- Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.1ms)
249
-  (0.3ms) rollback transaction
250
-  (0.3ms) begin transaction
251
-  (0.1ms) SAVEPOINT active_record_1
252
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:3beaf48,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-07 20:29:05 UTC], ["updated_at", 2017-05-07 20:29:05 UTC]]
253
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
254
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "a195c62c-37bd-4909-ac7a-de988528b636"], ["created_at", 2017-05-07 20:29:05 UTC]]
255
-  (0.0ms) RELEASE SAVEPOINT active_record_1
256
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 17:29:05 -0300
257
- Processing by ProductsController#show as HTML
258
- Parameters: {"id"=>"1"}
259
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
260
- Rendering products/show.html.erb within layouts/application
261
- Rendered products/show.html.erb within layouts/application (12.2ms)
262
- Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.1ms)
263
-  (0.1ms) rollback transaction
249
+  (0.4ms)  SELECT sql
250
+ FROM sqlite_master
251
+ WHERE name='associated_index' AND type='index'
252
+ UNION ALL
253
+ SELECT sql
254
+ FROM sqlite_temp_master
255
+ WHERE name='associated_index' AND type='index'
256
+ 
257
+  (9.6ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
258
+  (10.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
259
+  (10.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
260
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
261
+  (0.1ms) SELECT version FROM "schema_migrations"
262
+  (10.4ms) INSERT INTO "schema_migrations" (version) VALUES (20170507191539)
263
+  (8.8ms) INSERT INTO "schema_migrations" (version) VALUES
264
+ (20170507023018),
265
+ (20170507023113);
266
+
267
+ 
268
+  (12.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
269
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
264
270
   (0.1ms) begin transaction
265
- Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (9.0ms)
266
-  (0.1ms) rollback transaction
267
-  (0.3ms) begin transaction
268
-  (0.1ms) SAVEPOINT active_record_1
269
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:5ab6008,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-07 20:29:39 UTC], ["updated_at", 2017-05-07 20:29:39 UTC]]
270
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
271
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "7f842ffb-6f82-4091-8c7b-c8eb41e8698d"], ["created_at", 2017-05-07 20:29:39 UTC]]
272
-  (0.0ms) RELEASE SAVEPOINT active_record_1
273
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 17:29:39 -0300
274
- Processing by ProductsController#show as HTML
275
- Parameters: {"id"=>"1"}
276
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
277
- Rendering products/show.html.erb within layouts/application
278
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
279
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (8.0ms)
280
- Rendered products/show.html.erb within layouts/application (18.4ms)
281
- Completed 200 OK in 165ms (Views: 161.7ms | ActiveRecord: 0.3ms)
282
-  (0.1ms) rollback transaction
271
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 12:35:56 UTC], ["updated_at", 2017-05-08 12:35:56 UTC]]
272
+  (9.1ms) commit transaction
273
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
283
274
   (0.1ms) begin transaction
284
-  (0.1ms) rollback transaction
285
-  (0.3ms) begin transaction
286
-  (0.1ms) rollback transaction
287
-  (0.0ms) begin transaction
288
-  (0.0ms) SAVEPOINT active_record_1
289
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:4f58148,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-07 20:30:05 UTC], ["updated_at", 2017-05-07 20:30:05 UTC]]
290
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
291
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "afa4fa2c-b07c-4251-a19a-5b183326543b"], ["created_at", 2017-05-07 20:30:05 UTC]]
292
-  (0.0ms) RELEASE SAVEPOINT active_record_1
293
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 17:30:05 -0300
294
- Processing by ProductsController#show as HTML
295
- Parameters: {"id"=>"1"}
296
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
297
- Rendering products/show.html.erb within layouts/application
298
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
299
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (8.9ms)
300
- Rendered products/show.html.erb within layouts/application (19.6ms)
301
- Completed 200 OK in 162ms (Views: 159.3ms | ActiveRecord: 0.3ms)
302
-  (0.1ms) rollback transaction
303
-  (0.3ms) begin transaction
304
-  (0.1ms) SAVEPOINT active_record_1
305
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:520b638,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-07 20:35:14 UTC], ["updated_at", 2017-05-07 20:35:14 UTC]]
306
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
307
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "8a562ba5-843e-40d1-b81f-23ad0b81f1fd"], ["created_at", 2017-05-07 20:35:14 UTC]]
308
-  (0.0ms) RELEASE SAVEPOINT active_record_1
309
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 17:35:14 -0300
310
- Processing by ProductsController#show as HTML
311
- Parameters: {"id"=>"1"}
312
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
313
- Rendering products/show.html.erb within layouts/application
314
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
315
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (8.5ms)
316
- Rendered products/show.html.erb within layouts/application (19.6ms)
317
- Completed 200 OK in 165ms (Views: 161.7ms | ActiveRecord: 0.3ms)
318
-  (0.1ms) rollback transaction
319
-  (0.0ms) begin transaction
320
-  (0.1ms) rollback transaction
321
-  (0.3ms) begin transaction
322
-  (0.1ms) SAVEPOINT active_record_1
323
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:54414c0,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:53:41 UTC], ["updated_at", 2017-05-08 00:53:41 UTC]]
324
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
325
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "a85b1fe8-23fc-47bc-82c9-fb9ae369149a"], ["created_at", 2017-05-08 00:53:41 UTC]]
326
-  (0.0ms) RELEASE SAVEPOINT active_record_1
327
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:53:41 -0300
328
- Processing by ProductsController#show as HTML
329
- Parameters: {"id"=>"1"}
330
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
331
- Rendering products/show.html.erb within layouts/application
332
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
333
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (8.3ms)
334
- Rendered products/show.html.erb within layouts/application (19.0ms)
335
- Completed 200 OK in 168ms (Views: 164.7ms | ActiveRecord: 0.3ms)
336
-  (0.1ms) rollback transaction
337
-  (0.3ms) begin transaction
338
-  (0.1ms) SAVEPOINT active_record_1
339
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:3bfb3e8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:54:26 UTC], ["updated_at", 2017-05-08 00:54:26 UTC]]
340
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
341
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "64a62eff-5388-42ad-b543-7951978660d4"], ["created_at", 2017-05-08 00:54:26 UTC]]
342
-  (0.0ms) RELEASE SAVEPOINT active_record_1
343
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:54:26 -0300
344
- Processing by ProductsController#show as HTML
345
- Parameters: {"id"=>"1"}
346
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
347
- Rendering products/show.html.erb within layouts/application
348
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
349
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (8.5ms)
350
- Rendered products/show.html.erb within layouts/application (21.1ms)
351
- Completed 200 OK in 165ms (Views: 162.1ms | ActiveRecord: 0.3ms)
352
-  (0.1ms) rollback transaction
353
-  (0.8ms) begin transaction
275
+  (0.0ms) commit transaction
276
+  (0.5ms) begin transaction
354
277
   (0.1ms) SAVEPOINT active_record_1
355
- SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 00:56:45 UTC], ["updated_at", 2017-05-08 00:56:45 UTC]]
278
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:57 UTC], ["updated_at", 2017-05-08 12:35:57 UTC]]
356
279
   (0.1ms) RELEASE SAVEPOINT active_record_1
357
-  (0.2ms) SAVEPOINT active_record_1
358
- SQL (0.5ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:5276230,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:56:45 UTC], ["updated_at", 2017-05-08 00:56:45 UTC]]
359
- Audited::Audit Load (0.5ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
360
- SQL (0.5ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "283cfd86-3fd1-48bd-b5d1-9cd6d5c9e639"], ["created_at", 2017-05-08 00:56:45 UTC]]
361
-  (0.2ms) RELEASE SAVEPOINT active_record_1
362
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:56:45 -0300
363
- Processing by ProductsController#show as HTML
364
- Parameters: {"id"=>"1"}
365
- Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
366
- Rendering products/show.html.erb within layouts/application
367
- Audited::Audit Load (0.5ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
368
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
369
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (30.8ms)
370
- Rendered products/show.html.erb within layouts/application (66.7ms)
371
- Completed 200 OK in 446ms (Views: 436.6ms | ActiveRecord: 1.1ms)
372
-  (0.4ms) rollback transaction
373
-  (0.3ms) begin transaction
374
-  (0.0ms) SAVEPOINT active_record_1
375
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 00:57:43 UTC], ["updated_at", 2017-05-08 00:57:43 UTC]]
376
-  (0.0ms) RELEASE SAVEPOINT active_record_1
377
-  (0.1ms) SAVEPOINT active_record_1
378
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:4cef8c0,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:57:43 UTC], ["updated_at", 2017-05-08 00:57:43 UTC]]
379
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
380
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "04f3a37d-b748-40b2-85b6-657bb1720ed9"], ["created_at", 2017-05-08 00:57:43 UTC]]
381
-  (0.0ms) RELEASE SAVEPOINT active_record_1
382
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:57:43 -0300
383
- Processing by ProductsController#show as HTML
384
- Parameters: {"id"=>"1"}
385
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
386
- Rendering products/show.html.erb within layouts/application
387
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
388
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
389
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.2ms)
390
- Rendered products/show.html.erb within layouts/application (23.3ms)
391
- Completed 200 OK in 164ms (Views: 161.1ms | ActiveRecord: 0.4ms)
392
-  (0.1ms) rollback transaction
393
-  (0.3ms) begin transaction
394
-  (0.0ms) SAVEPOINT active_record_1
395
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 00:58:32 UTC], ["updated_at", 2017-05-08 00:58:32 UTC]]
396
-  (0.0ms) RELEASE SAVEPOINT active_record_1
397
-  (0.1ms) SAVEPOINT active_record_1
398
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:42043e8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:58:32 UTC], ["updated_at", 2017-05-08 00:58:32 UTC]]
399
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
400
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "78cbd01a-047d-491f-a76e-2db32e0cca7d"], ["created_at", 2017-05-08 00:58:32 UTC]]
401
-  (0.0ms) RELEASE SAVEPOINT active_record_1
402
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:58:32 -0300
403
- Processing by ProductsController#show as HTML
404
- Parameters: {"id"=>"1"}
405
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
406
- Rendering products/show.html.erb within layouts/application
407
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
408
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
409
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.8ms)
410
- Rendered products/show.html.erb within layouts/application (24.1ms)
411
- Completed 200 OK in 172ms (Views: 168.2ms | ActiveRecord: 0.4ms)
412
-  (0.2ms) rollback transaction
413
-  (0.3ms) begin transaction
414
-  (0.0ms) SAVEPOINT active_record_1
415
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 00:59:09 UTC], ["updated_at", 2017-05-08 00:59:09 UTC]]
416
-  (0.0ms) RELEASE SAVEPOINT active_record_1
417
-  (0.1ms) SAVEPOINT active_record_1
418
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:4078bf0,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:59:10 UTC], ["updated_at", 2017-05-08 00:59:10 UTC]]
419
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
420
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "9af52212-6076-4ca9-8fda-1f9673077814"], ["created_at", 2017-05-08 00:59:10 UTC]]
421
-  (0.0ms) RELEASE SAVEPOINT active_record_1
422
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:59:10 -0300
423
- Processing by ProductsController#show as HTML
424
- Parameters: {"id"=>"1"}
425
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
426
- Rendering products/show.html.erb within layouts/application
427
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
428
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
429
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.8ms)
430
- Rendered products/show.html.erb within layouts/application (24.1ms)
431
- Completed 200 OK in 172ms (Views: 168.1ms | ActiveRecord: 0.7ms)
432
-  (0.1ms) rollback transaction
433
-  (0.3ms) begin transaction
434
280
   (0.1ms) SAVEPOINT active_record_1
435
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 00:59:30 UTC], ["updated_at", 2017-05-08 00:59:30 UTC]]
281
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:2d76750,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:57 UTC], ["updated_at", 2017-05-08 12:35:57 UTC]]
282
+ Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
283
+ SQL (0.3ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "41835f55-1b36-43a4-ad3e-575de5255d6f"], ["created_at", 2017-05-08 12:35:57 UTC]]
436
284
   (0.1ms) RELEASE SAVEPOINT active_record_1
437
-  (0.1ms) SAVEPOINT active_record_1
438
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:4387738,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:59:30 UTC], ["updated_at", 2017-05-08 00:59:30 UTC]]
439
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
440
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "4432d727-4179-41a2-b873-00bd14ae32fb"], ["created_at", 2017-05-08 00:59:30 UTC]]
441
-  (0.0ms) RELEASE SAVEPOINT active_record_1
442
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:59:30 -0300
443
- Processing by ProductsController#show as HTML
444
- Parameters: {"id"=>"1"}
445
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
446
- Rendering products/show.html.erb within layouts/application
447
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
448
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
449
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.5ms)
450
- Rendered products/show.html.erb within layouts/application (24.6ms)
451
- Completed 200 OK in 169ms (Views: 165.5ms | ActiveRecord: 0.4ms)
452
-  (0.2ms) rollback transaction
453
-  (0.3ms) begin transaction
454
-  (0.0ms) SAVEPOINT active_record_1
455
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 00:59:33 UTC], ["updated_at", 2017-05-08 00:59:33 UTC]]
456
-  (0.0ms) RELEASE SAVEPOINT active_record_1
457
-  (0.1ms) SAVEPOINT active_record_1
458
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:40eee18,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 00:59:33 UTC], ["updated_at", 2017-05-08 00:59:33 UTC]]
459
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
460
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "9c088518-cb86-44ee-b5e0-9d052189a3e2"], ["created_at", 2017-05-08 00:59:33 UTC]]
461
-  (0.0ms) RELEASE SAVEPOINT active_record_1
462
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 21:59:33 -0300
463
- Processing by ProductsController#show as HTML
464
- Parameters: {"id"=>"1"}
465
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
466
- Rendering products/show.html.erb within layouts/application
467
- Audited::Audit Load (0.4ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
468
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
469
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (10.9ms)
470
- Rendered products/show.html.erb within layouts/application (23.5ms)
471
- Completed 200 OK in 164ms (Views: 161.0ms | ActiveRecord: 0.7ms)
472
-  (0.1ms) rollback transaction
473
-  (0.3ms) begin transaction
474
-  (0.0ms) SAVEPOINT active_record_1
475
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:00:36 UTC], ["updated_at", 2017-05-08 01:00:36 UTC]]
476
-  (0.0ms) RELEASE SAVEPOINT active_record_1
477
-  (0.1ms) SAVEPOINT active_record_1
478
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:429b248,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:00:36 UTC], ["updated_at", 2017-05-08 01:00:36 UTC]]
479
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
480
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "1a89bf0d-dc4a-4ff1-aaf0-6c7f4e0e6a94"], ["created_at", 2017-05-08 01:00:36 UTC]]
481
-  (0.0ms) RELEASE SAVEPOINT active_record_1
482
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:00:36 -0300
285
+ Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:57 -0300
483
286
  Processing by ProductsController#show as HTML
484
287
  Parameters: {"id"=>"1"}
485
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
288
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
486
289
  Rendering products/show.html.erb within layouts/application
487
290
  Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
488
291
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
489
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.7ms)
490
- Rendered products/show.html.erb within layouts/application (24.0ms)
491
- Completed 200 OK in 170ms (Views: 166.2ms | ActiveRecord: 0.5ms)
492
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-07 22:00:37 -0300
292
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (18.4ms)
293
+ Rendered products/show.html.erb within layouts/application (36.1ms)
294
+ Completed 200 OK in 197ms (Views: 190.6ms | ActiveRecord: 0.6ms)
295
+ Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:35:58 -0300
493
296
  Processing by ProductsController#show as HTML
494
297
  Parameters: {"show_log"=>"true", "id"=>"1"}
495
298
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
496
299
  Rendering products/show.html.erb within layouts/application
497
300
  Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
498
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
499
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
500
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
501
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
502
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.4ms)
503
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.5ms)
504
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (12.5ms)
505
- Rendered products/show.html.erb within layouts/application (14.0ms)
506
- Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.5ms)
507
-  (0.1ms) rollback transaction
508
-  (0.0ms) begin transaction
509
-  (0.0ms) SAVEPOINT active_record_1
510
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:00:37 UTC], ["updated_at", 2017-05-08 01:00:37 UTC]]
511
-  (0.0ms) RELEASE SAVEPOINT active_record_1
512
-  (0.0ms) SAVEPOINT active_record_1
513
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:6df7928,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:00:37 UTC], ["updated_at", 2017-05-08 01:00:37 UTC]]
514
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
515
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "cb62d38d-c4f5-4a21-aee1-5f1ac4de00bc"], ["created_at", 2017-05-08 01:00:37 UTC]]
516
-  (0.0ms) RELEASE SAVEPOINT active_record_1
517
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:00:37 -0300
518
- Processing by ProductsController#show as HTML
519
- Parameters: {"id"=>"1"}
520
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
521
- Rendering products/show.html.erb within layouts/application
522
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
523
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
524
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.7ms)
525
- Rendered products/show.html.erb within layouts/application (5.4ms)
526
- Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.3ms)
527
-  (0.2ms) rollback transaction
528
-  (0.3ms) begin transaction
529
-  (0.0ms) SAVEPOINT active_record_1
530
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:26 UTC], ["updated_at", 2017-05-08 01:01:26 UTC]]
531
-  (0.1ms) RELEASE SAVEPOINT active_record_1
532
-  (0.1ms) SAVEPOINT active_record_1
533
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:56bb1d8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:01:26 UTC], ["updated_at", 2017-05-08 01:01:26 UTC]]
534
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
535
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "01057b85-25c5-4924-9f8d-2d9bf357cdee"], ["created_at", 2017-05-08 01:01:26 UTC]]
536
-  (0.0ms) RELEASE SAVEPOINT active_record_1
537
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:01:26 -0300
538
- Processing by ProductsController#show as HTML
539
- Parameters: {"id"=>"1"}
540
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
541
- Rendering products/show.html.erb within layouts/application
542
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
543
301
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
544
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.1ms)
545
- Rendered products/show.html.erb within layouts/application (23.2ms)
546
- Completed 200 OK in 171ms (Views: 168.1ms | ActiveRecord: 0.4ms)
547
-  (0.2ms) rollback transaction
548
-  (0.0ms) begin transaction
549
-  (0.0ms) SAVEPOINT active_record_1
550
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:26 UTC], ["updated_at", 2017-05-08 01:01:26 UTC]]
551
-  (0.0ms) RELEASE SAVEPOINT active_record_1
552
-  (0.0ms) SAVEPOINT active_record_1
553
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:817b350,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:01:26 UTC], ["updated_at", 2017-05-08 01:01:26 UTC]]
554
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
555
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "fa0e5f41-e33b-4e77-a8ab-a8346b191c84"], ["created_at", 2017-05-08 01:01:26 UTC]]
556
-  (0.0ms) RELEASE SAVEPOINT active_record_1
557
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:01:26 -0300
558
- Processing by ProductsController#show as HTML
559
- Parameters: {"id"=>"1"}
560
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
561
- Rendering products/show.html.erb within layouts/application
562
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
563
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
564
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.2ms)
565
- Rendered products/show.html.erb within layouts/application (4.8ms)
566
- Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms)
567
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-07 22:01:26 -0300
568
- Processing by ProductsController#show as HTML
569
- Parameters: {"show_log"=>"true", "id"=>"1"}
570
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
571
- Rendering products/show.html.erb within layouts/application
572
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
573
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
574
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
302
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
575
303
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
576
304
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
577
305
  Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.3ms)
578
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.3ms)
579
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (12.1ms)
580
- Rendered products/show.html.erb within layouts/application (13.5ms)
581
- Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.5ms)
306
+ Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.7ms)
307
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (13.8ms)
308
+ Rendered products/show.html.erb within layouts/application (15.5ms)
309
+ Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.6ms)
582
310
   (0.2ms) rollback transaction
583
-  (0.3ms) begin transaction
311
+  (0.1ms) begin transaction
584
312
   (0.0ms) SAVEPOINT active_record_1
585
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:41 UTC], ["updated_at", 2017-05-08 01:01:41 UTC]]
313
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
586
314
   (0.0ms) RELEASE SAVEPOINT active_record_1
587
315
   (0.1ms) SAVEPOINT active_record_1
588
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:47bb0e8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:01:41 UTC], ["updated_at", 2017-05-08 01:01:41 UTC]]
589
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
590
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "5cad835d-521a-445f-bbdc-02b1734cb8ae"], ["created_at", 2017-05-08 01:01:41 UTC]]
591
-  (0.0ms) RELEASE SAVEPOINT active_record_1
592
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:01:41 -0300
316
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:61256c8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
317
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
318
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "73f94d51-41f9-43c8-a48c-1f9fdf8a7bb5"], ["created_at", 2017-05-08 12:35:58 UTC]]
319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
320
+ Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:58 -0300
593
321
  Processing by ProductsController#show as HTML
594
322
  Parameters: {"id"=>"1"}
595
323
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
596
324
  Rendering products/show.html.erb within layouts/application
597
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
325
+ Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
598
326
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
599
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.4ms)
600
- Rendered products/show.html.erb within layouts/application (23.7ms)
601
- Completed 200 OK in 172ms (Views: 168.9ms | ActiveRecord: 0.4ms)
602
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-07 22:01:41 -0300
603
- Processing by ProductsController#show as HTML
604
- Parameters: {"show_log"=>"true", "id"=>"1"}
605
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
606
- Rendering products/show.html.erb within layouts/application
607
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
608
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
609
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
610
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
611
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
612
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (5.2ms)
613
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (7.2ms)
614
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.2ms)
615
- Rendered products/show.html.erb within layouts/application (12.7ms)
616
- Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.5ms)
617
-  (0.2ms) rollback transaction
618
-  (0.0ms) begin transaction
619
-  (0.0ms) SAVEPOINT active_record_1
620
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:41 UTC], ["updated_at", 2017-05-08 01:01:41 UTC]]
621
-  (0.0ms) RELEASE SAVEPOINT active_record_1
622
-  (0.0ms) SAVEPOINT active_record_1
623
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:7301270,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:01:41 UTC], ["updated_at", 2017-05-08 01:01:41 UTC]]
624
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
625
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "91b6358c-a006-4e5c-8f26-ff6de2c3359b"], ["created_at", 2017-05-08 01:01:41 UTC]]
626
-  (0.0ms) RELEASE SAVEPOINT active_record_1
627
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:01:41 -0300
628
- Processing by ProductsController#show as HTML
629
- Parameters: {"id"=>"1"}
630
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
631
- Rendering products/show.html.erb within layouts/application
632
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
633
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
634
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.4ms)
635
- Rendered products/show.html.erb within layouts/application (5.0ms)
636
- Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms)
637
-  (0.2ms) rollback transaction
638
-  (0.3ms) begin transaction
639
-  (0.0ms) SAVEPOINT active_record_1
640
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:02:36 UTC], ["updated_at", 2017-05-08 01:02:36 UTC]]
327
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.9ms)
328
+ Rendered products/show.html.erb within layouts/application (7.2ms)
329
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms)
330
+  (0.3ms) rollback transaction
331
+  (0.4ms) begin transaction
332
+  (0.1ms) SAVEPOINT active_record_1
333
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
641
334
   (0.1ms) RELEASE SAVEPOINT active_record_1
642
335
   (0.1ms) SAVEPOINT active_record_1
643
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:50e09c0,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:02:36 UTC], ["updated_at", 2017-05-08 01:02:36 UTC]]
644
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
645
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "c1b12a51-43f8-40e2-b9c8-e12737add1ab"], ["created_at", 2017-05-08 01:02:36 UTC]]
646
-  (0.0ms) RELEASE SAVEPOINT active_record_1
647
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:02:36 -0300
336
+ SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:382d8d8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
337
+ Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
338
+ SQL (0.3ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "eee48361-37f1-4160-b26e-1f375731ed9d"], ["created_at", 2017-05-08 12:36:01 UTC]]
339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340
+ Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
648
341
  Processing by ProductsController#show as HTML
649
342
  Parameters: {"id"=>"1"}
650
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
343
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
651
344
  Rendering products/show.html.erb within layouts/application
652
345
  Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
653
346
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
654
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.5ms)
655
- Rendered products/show.html.erb within layouts/application (23.3ms)
656
- Completed 200 OK in 174ms (Views: 170.9ms | ActiveRecord: 0.4ms)
347
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.6ms)
348
+ Rendered products/show.html.erb within layouts/application (26.6ms)
349
+ Completed 200 OK in 211ms (Views: 203.8ms | ActiveRecord: 0.5ms)
657
350
   (0.2ms) rollback transaction
658
-  (0.0ms) begin transaction
351
+  (0.1ms) begin transaction
659
352
   (0.0ms) SAVEPOINT active_record_1
660
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:02:36 UTC], ["updated_at", 2017-05-08 01:02:36 UTC]]
353
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
661
354
   (0.0ms) RELEASE SAVEPOINT active_record_1
662
355
   (0.0ms) SAVEPOINT active_record_1
663
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:7ba9058,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:02:36 UTC], ["updated_at", 2017-05-08 01:02:36 UTC]]
356
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:5ec7250,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
664
357
  Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
665
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "ea17b97b-20a1-4fc0-a0dd-6af327f5eae2"], ["created_at", 2017-05-08 01:02:36 UTC]]
666
-  (0.1ms) RELEASE SAVEPOINT active_record_1
667
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:02:36 -0300
358
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "f6da4da1-a6c6-46e8-a08b-c45a3f626f6f"], ["created_at", 2017-05-08 12:36:01 UTC]]
359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
360
+ Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
668
361
  Processing by ProductsController#show as HTML
669
362
  Parameters: {"id"=>"1"}
670
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
363
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
671
364
  Rendering products/show.html.erb within layouts/application
672
365
  Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
673
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
674
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.7ms)
675
- Rendered products/show.html.erb within layouts/application (5.3ms)
676
- Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.3ms)
677
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-07 22:02:36 -0300
366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
367
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.4ms)
368
+ Rendered products/show.html.erb within layouts/application (6.6ms)
369
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.3ms)
370
+ Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
678
371
  Processing by ProductsController#show as HTML
679
372
  Parameters: {"show_log"=>"true", "id"=>"1"}
680
373
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
681
374
  Rendering products/show.html.erb within layouts/application
682
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
375
+ Audited::Audit Load (0.4ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
683
376
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
684
377
  Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
685
378
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
686
379
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
687
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (5.9ms)
688
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.7ms)
689
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (14.0ms)
690
- Rendered products/show.html.erb within layouts/application (15.6ms)
691
- Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.6ms)
692
-  (0.1ms) rollback transaction
693
-  (0.3ms) begin transaction
694
-  (0.1ms) SAVEPOINT active_record_1
695
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:04:55 UTC], ["updated_at", 2017-05-08 01:04:55 UTC]]
696
-  (0.0ms) RELEASE SAVEPOINT active_record_1
697
-  (0.1ms) SAVEPOINT active_record_1
698
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:50e9318,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:04:55 UTC], ["updated_at", 2017-05-08 01:04:55 UTC]]
699
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
700
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "655be2b6-1045-4cb5-b692-e054d03668f4"], ["created_at", 2017-05-08 01:04:55 UTC]]
701
-  (0.0ms) RELEASE SAVEPOINT active_record_1
702
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:04:55 -0300
703
- Processing by ProductsController#show as HTML
704
- Parameters: {"id"=>"1"}
705
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
706
- Rendering products/show.html.erb within layouts/application
707
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
708
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
709
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.1ms)
710
- Rendered products/show.html.erb within layouts/application (24.3ms)
711
- Completed 200 OK in 168ms (Views: 164.7ms | ActiveRecord: 0.4ms)
712
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-07 22:04:55 -0300
713
- Processing by ProductsController#show as HTML
714
- Parameters: {"show_log"=>"true", "id"=>"1"}
715
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
716
- Rendering products/show.html.erb within layouts/application
717
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
718
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
719
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
720
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
721
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
722
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (5.1ms)
723
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (7.1ms)
724
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (10.9ms)
725
- Rendered products/show.html.erb within layouts/application (12.3ms)
726
- Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.5ms)
727
-  (0.1ms) rollback transaction
728
-  (0.0ms) begin transaction
729
-  (0.0ms) SAVEPOINT active_record_1
730
- SQL (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 01:04:55 UTC], ["updated_at", 2017-05-08 01:04:55 UTC]]
731
-  (0.0ms) RELEASE SAVEPOINT active_record_1
732
-  (0.0ms) SAVEPOINT active_record_1
733
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:6fea5f0,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 01:04:55 UTC], ["updated_at", 2017-05-08 01:04:55 UTC]]
734
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
735
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "125432ad-66a1-4633-b66b-bb3f994fac2d"], ["created_at", 2017-05-08 01:04:55 UTC]]
736
-  (0.0ms) RELEASE SAVEPOINT active_record_1
737
- Started GET "/products/1" for 127.0.0.1 at 2017-05-07 22:04:55 -0300
738
- Processing by ProductsController#show as HTML
739
- Parameters: {"id"=>"1"}
740
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
741
- Rendering products/show.html.erb within layouts/application
742
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
743
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
744
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.2ms)
745
- Rendered products/show.html.erb within layouts/application (5.0ms)
746
- Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.2ms)
747
-  (0.1ms) rollback transaction
380
+ Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.7ms)
381
+ Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (9.5ms)
382
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (15.7ms)
383
+ Rendered products/show.html.erb within layouts/application (17.2ms)
384
+ Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.8ms)
385
+  (0.2ms) rollback transaction