audited_views 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/audit.rb +2 -2
- data/app/views/application/_audit_record.html.erb +1 -1
- data/lib/audited_views.rb +1 -0
- data/lib/audited_views/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +231 -593
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{xl/xlD5Hio6dGiAlbF6RQJSD2DLDNetsbjWSo1ENNi0jdA.cache → 3N/3NLOckzY84noY3hUEOd6K6Rfz7XB_fIRpHeGca6jXFQ.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3Y/3YWAsbouC_92KRyVIfCR1XZUL6aU5fDhsrDPZPwqLaw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{YJ/YJtvP__n_ITqVJFjg7SNmEV8X5LbGOz153KZHMn7A9I.cache → 6I/6IckMLuSd1VjjIlhjnTs6QHUVroN9w04mXEBy0fU6kM.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/AlF65aLeuD-x6AxoO6n4G93XaQ5Nx0MU1FzfD4L3cPc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D0/D0cNdcvMptZ90AYLZ73Y5d3iFojSVkzXX1hn78q5VSU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{3P/3PK7aqnTybA5wVtn4700SPNvcK6dejPg9tiLgBYBViI.cache → G3/G3NDkLlk_SX3YG7k0awtx4zjVlakoKrntN0jsjSlAhQ.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Vu/VuoeZYDVkOHSjfAnQhegAaddC_cmOg0_2-fEjwByr2g.cache → MJ/MJsVvHPcinS4hoxBd_MJ0yT7ViT4Ka6UMsRGGCuEMe0.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{v4/v4RHC934V-T5x1Nb2COYpgO8T9xMJDHUEL6q0crUZng.cache → R8/R8a1x_kIzFZki0ulOqRGqJfaA12mS9yybP1yhl5NY5Y.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{G3/G3-tv19JISLSSRsGC9RGYPFoKz-eJUiLX305MLBRy2I.cache → RW/RWT2LDI5Hha4SP5FZXHASQrTckyYiN2XnYmK2vdeKPE.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{g9/g971Klk7lTPw1fRk9VTAKO2DhIDmOMMDyij3ztCQjy8.cache → S7/S7N-OOCIx75bN-VQuGH8Bs-NEQh0ssHghH7U96EBzM0.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VO/VOse1hbRPubC1r_WKyZVcYG1tsb06PRsqYBTWSZ_4LQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Q-/Q-UOgOa_LL2DWgrt0rM8RVF3jeARORAKZzpo9HQJDS4.cache → Yu/YuPHwAJY0qdk1Fb45vssLS5M3MciX-sj_cQ9baUwa9U.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{L2/L2y0YEwaUri6z1liCIMCGL4QjIm0SRdCy-uQ95Na6a8.cache → Z3/Z3JitHcVFrpH_dDIHC8wcLgBbrOFH80aMYBrF8nd4tM.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Hb/HbwMdgucEk--be2EHuRlKDWcL3k-dzQfMgpOy60OrTc.cache → Zq/ZqwqzGmQdZwugVyeWaTsoSs1I-XBgeIBtazZxC4lYZs.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{70/70uPUtQT3y75FopbmEz3gd0jRFdPBXxoGs6V_FqlbX0.cache → _T/_TaNU0GYb1Zzjzqn1bEXOa71HFfO3dCpQondp87sme0.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pn/pneR-xUFEeqlsU0chMbmmftc6gAsfjtjN5OaIGlKhRI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{9m/9m1uMOh0tNA4F013e0lQ55KsZ1mW9-DJ-P7YQ8ehjO8.cache → q3/q3odLgZNiy989rT2dGN8sh88f9cbTIlXNBsMxVm-qO4.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{WP/WPx0xeq-DpjAUB8Fr6PqvzYSp13C5EpZuuIVQiIfSR8.cache → qx/qxk5c2dD60rx2NJD_uhpqxuHoJLxv5XwxAZTALIICns.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sE/sE5I8LMVqjxu0PHdY_io7wdnYvUQnL-YQaUIk8sw-M4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{eS/eS5Narq3MfOC-cyHoerhLMXKH4mVuSCuCUGlUBrsW-g.cache → uU/uU7MDObelvIGwP_PhyWZ3qWYsbvuSdNJGFXkYIqtCEs.cache} +0 -0
- data/spec/dummy/tmp/capybara/{capybara-201705072204557673614766.html → capybara-201705080935504744542394.html} +3 -3
- data/spec/dummy/tmp/capybara/{capybara-201705072202363033472193.html → capybara-201705080935583045830839.html} +9 -9
- data/spec/dummy/tmp/capybara/capybara-201705080936011266128551.html +139 -0
- metadata +103 -105
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -154
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cc2db336495229e610ddb64a5d7c53334e2f1bd
|
|
4
|
+
data.tar.gz: f1325bc6b96bddcd6b4334c54b99a333e14cf29c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d21d9ac6783e58790486caa41c472356e908937db7d610007504bb184a5bc3c11e046388ac03144fb864997e765e2f77a363c57ab74c9c918296ec95897c931c
|
|
7
|
+
data.tar.gz: 2bfc81284d7d5d1a58db9cc161f387d9100dfb922b894f997cc9696453165f3c94cdf4f08d9a155122d765b4e0b7344b69d31d761fcf36c689a29f795a953e11
|
data/app/models/audit.rb
CHANGED
|
@@ -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
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
data/spec/dummy/log/test.log
CHANGED
|
@@ -1,44 +1,19 @@
|
|
|
1
|
-
[1m[35m (237.8ms)[0m [1m[35mCREATE 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)[0m
|
|
2
|
-
[1m[35m (114.1ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
3
|
-
[1m[35m (130.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
4
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
5
|
-
[1m[35m (241.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20170507023113)[0m
|
|
6
|
-
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
|
7
|
-
[1m[35m (156.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
|
8
|
-
(20170507023018);
|
|
9
|
-
|
|
10
|
-
[0m
|
|
11
|
-
[1m[35m (257.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
12
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
13
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
14
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-05-07 18:26:06 UTC], ["updated_at", 2017-05-07 18:26:06 UTC]]
|
|
15
|
-
[1m[35m (166.7ms)[0m [1m[36mcommit transaction[0m
|
|
16
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
17
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
18
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
19
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
20
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
21
1
|
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
|
22
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (13.0ms)
|
|
23
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
24
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
25
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (21.2ms)
|
|
26
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
27
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
28
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (20.4ms)
|
|
29
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
30
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
31
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (21.1ms)
|
|
32
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
33
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
34
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (55.6ms)
|
|
35
2
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
36
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
37
|
-
Migrating to InstallAudited (20170507191539)
|
|
38
3
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
39
|
-
[1m[35m (0.
|
|
40
|
-
[1m[35m (
|
|
41
|
-
[1m[35m (0.1ms)[0m [1m[
|
|
4
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
5
|
+
[1m[35m (23.1ms)[0m [1m[35mCREATE 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)[0m
|
|
6
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
|
7
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
|
8
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
|
16
|
+
[1m[35m (10.6ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
|
42
17
|
[1m[35m (0.1ms)[0m [1m[34m 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
|
[0m
|
|
50
|
-
[1m[35m (0.1ms)[0m [1m[
|
|
51
|
-
[1m[35m (0.0ms)[0m [1m[34m SELECT sql
|
|
25
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
[0m
|
|
59
|
-
[1m[35m (
|
|
33
|
+
[1m[35m (10.7ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
34
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
|
42
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
[0m
|
|
67
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
68
50
|
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
69
51
|
FROM sqlite_master
|
|
70
|
-
WHERE name='
|
|
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='
|
|
56
|
+
WHERE name='associated_index' AND type='index'
|
|
75
57
|
[0m
|
|
58
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
76
59
|
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
77
60
|
FROM sqlite_master
|
|
78
|
-
WHERE name='
|
|
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='
|
|
65
|
+
WHERE name='index_audits_on_request_uuid' AND type='index'
|
|
83
66
|
[0m
|
|
84
|
-
[1m[35m (0.
|
|
67
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
85
68
|
FROM sqlite_master
|
|
86
|
-
WHERE name='
|
|
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='
|
|
73
|
+
WHERE name='index_audits_on_created_at' AND type='index'
|
|
91
74
|
[0m
|
|
92
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
93
75
|
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
94
76
|
FROM sqlite_master
|
|
95
|
-
WHERE name='
|
|
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='
|
|
81
|
+
WHERE name='auditable_index' AND type='index'
|
|
100
82
|
[0m
|
|
101
|
-
[1m[35m (0.
|
|
83
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
102
84
|
FROM sqlite_master
|
|
103
|
-
WHERE name='
|
|
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='
|
|
89
|
+
WHERE name='associated_index' AND type='index'
|
|
108
90
|
[0m
|
|
109
|
-
[1m[35m (
|
|
91
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
92
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE 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)[0m
|
|
93
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
94
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
95
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
96
|
+
[1m[35m (10.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20170507191539)[0m
|
|
97
|
+
[1m[35m (10.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
|
98
|
+
(20170507023018),
|
|
99
|
+
(20170507023113);
|
|
100
|
+
|
|
101
|
+
[0m
|
|
102
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
103
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
104
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
105
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 12:35:48 UTC], ["updated_at", 2017-05-08 12:35:48 UTC]]
|
|
106
|
+
[1m[35m (11.2ms)[0m [1m[36mcommit transaction[0m
|
|
107
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
108
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
109
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
110
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
|
111
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
112
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
|
|
113
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
114
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
115
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
117
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
123
|
+
Rendering products/show.html.erb within layouts/application
|
|
124
|
+
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
125
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
130
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
131
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
132
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
|
|
133
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
134
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
135
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
137
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
143
|
+
Rendering products/show.html.erb within layouts/application
|
|
144
|
+
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
145
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
153
|
+
Rendering products/show.html.erb within layouts/application
|
|
154
|
+
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
155
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
156
|
+
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
157
|
+
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
158
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
165
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
166
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
|
167
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
168
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
|
169
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
170
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
|
171
|
+
[1m[35m (14.5ms)[0m [1m[35mCREATE 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)[0m
|
|
172
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
|
173
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
|
174
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
[0m
|
|
117
|
-
[1m[35m (
|
|
182
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
|
183
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
[0m
|
|
125
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
126
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507191539"]]
|
|
127
|
-
[1m[35m (63.5ms)[0m [1m[36mcommit transaction[0m
|
|
128
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
129
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
130
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
131
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
132
191
|
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
133
192
|
FROM sqlite_master
|
|
134
|
-
WHERE name='
|
|
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='
|
|
197
|
+
WHERE name='associated_index' AND type='index'
|
|
139
198
|
[0m
|
|
199
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
140
200
|
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
141
201
|
FROM sqlite_master
|
|
142
|
-
WHERE name='
|
|
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='
|
|
206
|
+
WHERE name='index_audits_on_created_at' AND type='index'
|
|
147
207
|
[0m
|
|
148
208
|
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
149
209
|
FROM sqlite_master
|
|
150
|
-
WHERE name='
|
|
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='
|
|
214
|
+
WHERE name='auditable_index' AND type='index'
|
|
155
215
|
[0m
|
|
156
216
|
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
|
224
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
225
|
+
[1m[35m (0.1ms)[0m [1m[34m 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
|
[0m
|
|
164
233
|
[1m[35m (0.1ms)[0m [1m[34m 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
|
+
[0m
|
|
241
|
+
[1m[35m (0.2ms)[0m [1m[34m 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
|
[0m
|
|
172
|
-
[1m[35m (0.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
[1m[35m (
|
|
181
|
-
[1m[35m (
|
|
182
|
-
|
|
183
|
-
[1m[35m (
|
|
184
|
-
[1m[35m (0.
|
|
185
|
-
|
|
186
|
-
[1m[35m (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
[1m[35m (
|
|
192
|
-
[1m[
|
|
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
|
-
[1m[36mProduct Load (2.1ms)[0m [1m[34mSELECT "products".* FROM "products"[0m
|
|
197
|
-
Rendered products/index.html.erb within layouts/application (61.9ms)
|
|
198
|
-
Completed 200 OK in 244ms (Views: 234.5ms | ActiveRecord: 2.8ms)
|
|
199
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
200
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
201
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (13.6ms)
|
|
202
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
203
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
204
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (19.1ms)
|
|
205
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
206
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
207
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
208
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
209
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (19.1ms)
|
|
210
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
211
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
212
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
213
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
214
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (20.8ms)
|
|
215
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
216
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
217
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
218
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
219
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (31.5ms)
|
|
220
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
221
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
222
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
223
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
224
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
225
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
226
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (28.6ms)
|
|
227
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
228
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
229
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (24.7ms)
|
|
230
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
231
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
232
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
233
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
234
|
-
Rendered /home/douglas/code/audited_views/app/views/audited_views/_controls.html.erb (22.5ms)
|
|
235
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
236
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
237
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
238
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
240
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
|
250
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
251
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
252
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
254
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
249
|
+
[1m[35m (0.4ms)[0m [1m[34m 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
|
+
[0m
|
|
257
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
258
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE 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)[0m
|
|
259
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
260
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
261
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
262
|
+
[1m[35m (10.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20170507191539)[0m
|
|
263
|
+
[1m[35m (8.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
|
264
|
+
(20170507023018),
|
|
265
|
+
(20170507023113);
|
|
266
|
+
|
|
267
|
+
[0m
|
|
268
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
269
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
264
270
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
265
|
-
|
|
266
|
-
[1m[35m (
|
|
267
|
-
[1m[
|
|
268
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
269
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
271
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
277
|
-
Rendering products/show.html.erb within layouts/application
|
|
278
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
271
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 12:35:56 UTC], ["updated_at", 2017-05-08 12:35:56 UTC]]
|
|
272
|
+
[1m[35m (9.1ms)[0m [1m[36mcommit transaction[0m
|
|
273
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
283
274
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
284
|
-
[1m[35m (0.
|
|
285
|
-
[1m[35m (0.
|
|
286
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
287
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
288
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
289
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
291
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
297
|
-
Rendering products/show.html.erb within layouts/application
|
|
298
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
303
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
304
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
305
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
307
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
313
|
-
Rendering products/show.html.erb within layouts/application
|
|
314
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
319
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
320
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
321
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
322
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
323
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
325
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
331
|
-
Rendering products/show.html.erb within layouts/application
|
|
332
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
337
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
338
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
339
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
341
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
347
|
-
Rendering products/show.html.erb within layouts/application
|
|
348
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
353
|
-
[1m[35m (0.8ms)[0m [1m[36mbegin transaction[0m
|
|
275
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
276
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
|
354
277
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
355
|
-
[1m[35mSQL (0.
|
|
278
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:57 UTC], ["updated_at", 2017-05-08 12:35:57 UTC]]
|
|
356
279
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
357
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
358
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.5ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
360
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.3ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
366
|
-
Rendering products/show.html.erb within layouts/application
|
|
367
|
-
[1m[36mAudited::Audit Load (0.5ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
368
|
-
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
|
373
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
374
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
375
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 00:57:43 UTC], ["updated_at", 2017-05-08 00:57:43 UTC]]
|
|
376
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
377
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
378
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
380
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
386
|
-
Rendering products/show.html.erb within layouts/application
|
|
387
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
388
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
393
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
394
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
395
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 00:58:32 UTC], ["updated_at", 2017-05-08 00:58:32 UTC]]
|
|
396
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
397
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
398
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
400
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
406
|
-
Rendering products/show.html.erb within layouts/application
|
|
407
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
408
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
413
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
414
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
415
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 00:59:09 UTC], ["updated_at", 2017-05-08 00:59:09 UTC]]
|
|
416
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
417
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
418
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
420
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
426
|
-
Rendering products/show.html.erb within layouts/application
|
|
427
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
428
|
-
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
433
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
434
280
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
435
|
-
[1m[35mSQL (0.
|
|
281
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
283
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
437
|
-
|
|
438
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
440
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
446
|
-
Rendering products/show.html.erb within layouts/application
|
|
447
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
448
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
453
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
454
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
455
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 00:59:33 UTC], ["updated_at", 2017-05-08 00:59:33 UTC]]
|
|
456
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
457
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
458
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
460
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
466
|
-
Rendering products/show.html.erb within layouts/application
|
|
467
|
-
[1m[36mAudited::Audit Load (0.4ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
468
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
473
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
474
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
475
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:00:36 UTC], ["updated_at", 2017-05-08 01:00:36 UTC]]
|
|
476
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
477
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
478
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
480
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.
|
|
288
|
+
[1m[36mProduct Load (0.2ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
486
289
|
Rendering products/show.html.erb within layouts/application
|
|
487
290
|
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
488
291
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
489
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (
|
|
490
|
-
Rendered products/show.html.erb within layouts/application (
|
|
491
|
-
Completed 200 OK in
|
|
492
|
-
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-
|
|
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
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
496
299
|
Rendering products/show.html.erb within layouts/application
|
|
497
300
|
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
498
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
499
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
500
|
-
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
501
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
508
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
509
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
510
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:00:37 UTC], ["updated_at", 2017-05-08 01:00:37 UTC]]
|
|
511
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
512
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
513
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
515
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
521
|
-
Rendering products/show.html.erb within layouts/application
|
|
522
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
523
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
528
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
529
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
530
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:26 UTC], ["updated_at", 2017-05-08 01:01:26 UTC]]
|
|
531
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
532
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
533
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
535
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
541
|
-
Rendering products/show.html.erb within layouts/application
|
|
542
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
543
301
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
544
|
-
|
|
545
|
-
Rendered products/show.html.erb within layouts/application (23.2ms)
|
|
546
|
-
Completed 200 OK in 171ms (Views: 168.1ms | ActiveRecord: 0.4ms)
|
|
547
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
548
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
549
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
550
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:26 UTC], ["updated_at", 2017-05-08 01:01:26 UTC]]
|
|
551
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
552
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
553
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
555
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
561
|
-
Rendering products/show.html.erb within layouts/application
|
|
562
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
563
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
571
|
-
Rendering products/show.html.erb within layouts/application
|
|
572
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
573
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
574
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
302
|
+
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
575
303
|
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
576
304
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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.
|
|
579
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (
|
|
580
|
-
Rendered products/show.html.erb within layouts/application (
|
|
581
|
-
Completed 200 OK in
|
|
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
|
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
583
|
-
[1m[35m (0.
|
|
311
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
584
312
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
585
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08
|
|
313
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
|
|
586
314
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
587
315
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
588
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:
|
|
589
|
-
[1m[36mAudited::Audit Load (0.
|
|
590
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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", "
|
|
591
|
-
[1m[35m (0.
|
|
592
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-
|
|
316
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
318
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
596
324
|
Rendering products/show.html.erb within layouts/application
|
|
597
|
-
[1m[36mAudited::Audit Load (0.
|
|
325
|
+
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
598
326
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
599
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (
|
|
600
|
-
Rendered products/show.html.erb within layouts/application (
|
|
601
|
-
Completed 200 OK in
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
[1m[
|
|
606
|
-
Rendering products/show.html.erb within layouts/application
|
|
607
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
608
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
609
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
610
|
-
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
611
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
618
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
619
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
620
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:01:41 UTC], ["updated_at", 2017-05-08 01:01:41 UTC]]
|
|
621
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
622
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
623
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
625
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
631
|
-
Rendering products/show.html.erb within layouts/application
|
|
632
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
633
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
638
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
639
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
640
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
|
331
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
|
332
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
333
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
|
|
641
334
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
642
335
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
643
|
-
[1m[35mSQL (0.
|
|
644
|
-
[1m[36mAudited::Audit Load (0.
|
|
645
|
-
[1m[35mSQL (0.
|
|
646
|
-
[1m[35m (0.
|
|
647
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-
|
|
336
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
338
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.
|
|
343
|
+
[1m[36mProduct Load (0.2ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
651
344
|
Rendering products/show.html.erb within layouts/application
|
|
652
345
|
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
653
346
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
654
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.
|
|
655
|
-
Rendered products/show.html.erb within layouts/application (
|
|
656
|
-
Completed 200 OK in
|
|
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
|
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
658
|
-
[1m[35m (0.
|
|
351
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
659
352
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
660
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08
|
|
353
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
|
|
661
354
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
662
355
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
663
|
-
[1m[35mSQL (0.
|
|
356
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
665
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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", "
|
|
666
|
-
[1m[35m (0.
|
|
667
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-
|
|
358
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.
|
|
363
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
671
364
|
Rendering products/show.html.erb within layouts/application
|
|
672
365
|
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
673
|
-
[1m[36mUser Load (0.
|
|
674
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (
|
|
675
|
-
Rendered products/show.html.erb within layouts/application (
|
|
676
|
-
Completed 200 OK in
|
|
677
|
-
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-
|
|
366
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
681
374
|
Rendering products/show.html.erb within layouts/application
|
|
682
|
-
[1m[36mAudited::Audit Load (0.
|
|
375
|
+
[1m[36mAudited::Audit Load (0.4ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
683
376
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
684
377
|
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
685
378
|
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
686
379
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
687
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (
|
|
688
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (
|
|
689
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (
|
|
690
|
-
Rendered products/show.html.erb within layouts/application (
|
|
691
|
-
Completed 200 OK in
|
|
692
|
-
[1m[35m (0.
|
|
693
|
-
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
|
694
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
695
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:04:55 UTC], ["updated_at", 2017-05-08 01:04:55 UTC]]
|
|
696
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
697
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
698
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
700
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
706
|
-
Rendering products/show.html.erb within layouts/application
|
|
707
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
708
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
716
|
-
Rendering products/show.html.erb within layouts/application
|
|
717
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
718
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
719
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
720
|
-
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
721
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
728
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
729
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
730
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 01:04:55 UTC], ["updated_at", 2017-05-08 01:04:55 UTC]]
|
|
731
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
732
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
733
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
735
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
741
|
-
Rendering products/show.html.erb within layouts/application
|
|
742
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
743
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
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
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|