audited_views 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/audited_views.css +6 -0
- data/app/helpers/audited_views_helper.rb +0 -1
- data/lib/audited_views/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +386 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3l/3lTfVt5mnUw_pwWB-EWfV7v3nBpF6w9PWzx_OY0d5Uo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/47/47N7l6uHSjSCd7Ru3vJ0JoBp9dFdqA8phU8uKIjIvqM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BN/BNy5uhInXB0ihf1X9XEjYXOTQzS7LxrBtFhdfyIdeqA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OJ/OJ1uiUYKQmWd42oIWTlWOfjdMwo2HqQUv4bwvFozlgo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXWdn9vE2KzoWk1Tgi3J7onOHM0xGEFYOD1Hg0h_bS0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkhAoD3YaK1D-UYeKoFVVgr69lnTZMSQqUfczLbJ5NE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SV/SVlVMncJi5iECzorG_xSmMvxIdCpAUPWeqLkXBRXKpM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VR/VReNvp0QHy6LIJW8nYxURZoy5zbXKlkoMwR1TKWY-VQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cj/cjNlSRlQtUDAwuCwO0GS59TcwcUey_SxumTMRMHp-Pc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gQ/gQL5o0PwSkV6nDNQotitNefQRbps23gfbhd0spq4GYI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lk/lkovZoGWsi9s_5nn1YPmKKPQO5Ip6AeKCDi1Fj94i4o.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4b6OtLpnRvCY8QxV_G2w9l7YiS6Nb-1ZMXncJLuCxU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pd/pdcYU2LAlzymtrkzi7c5N-62_9DiwuvZTHdXvi3LOH4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQf8fS1PozjLFywxp2mh64LVU9thBA6Mb1eJDrXOwUo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wK/wKsc6LmmkCDdNh8zD8yfu_lyJjL3pK8f1BpTAXc-vH4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yX/yXva_dhsxO6Sjr1dHQF_cyEOGHd065bVtMaMDTBQzXU.cache +0 -0
- data/spec/dummy/tmp/capybara/capybara-2017052417022284173193.html +139 -0
- data/spec/dummy/tmp/capybara/capybara-201705241703119446562013.html +139 -0
- data/spec/dummy/tmp/capybara/capybara-20170524170318735562344.html +139 -0
- data/spec/dummy/tmp/capybara/capybara-20170524170322884470518.html +139 -0
- data/spec/dummy/tmp/capybara/capybara-201705241704194913728982.html +139 -0
- metadata +45 -3
- data/app/models/audit.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 714402b63644225becb5fcb054fa9423ee906e51
|
4
|
+
data.tar.gz: cbdb67ffc6bd33c8e758ef8d990502bc13e14a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97572ca6c4c3972369b95044a2e2dff9a43a84897fe43bcddaffe2ff53f1c253a727e0dc9d210f8226884da7b8b7520499cd5be98d6ee71e269a930076504184
|
7
|
+
data.tar.gz: fb0c44430d9eb407c04b3385298c3904dc26e928174ee795139c21774433092913506ad417c93e63933e9db5e113f2086e570d98d0d9069961fc978e5031c759
|
@@ -21,7 +21,6 @@ module AuditedViewsHelper
|
|
21
21
|
def audit_link(model, text = nil)
|
22
22
|
text ||= I18n.t("audits.link_text")
|
23
23
|
unless params[:show_log]
|
24
|
-
puts "request.path: '#{request.path}'"
|
25
24
|
link_to "#{request.path}?show_log=true#audits", class: 'btn btn-default pull-right' do
|
26
25
|
text
|
27
26
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -383,3 +383,389 @@ Processing by ProductsController#show as HTML
|
|
383
383
|
Rendered products/show.html.erb within layouts/application (17.2ms)
|
384
384
|
Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.8ms)
|
385
385
|
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
386
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
387
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
388
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:02:21 UTC], ["updated_at", 2017-05-24 20:02:21 UTC]]
|
389
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
390
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
391
|
+
[1m[35mSQL (2.6ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:02:21 UTC], ["updated_at", 2017-05-24 20:02:21 UTC]]
|
392
|
+
[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]]
|
393
|
+
[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", "62f49913-0e08-4a70-adab-946829009a1a"], ["created_at", 2017-05-24 20:02:21 UTC]]
|
394
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
395
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:02:21 -0300
|
396
|
+
Processing by ProductsController#show as HTML
|
397
|
+
Parameters: {"id"=>"1"}
|
398
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
399
|
+
Rendering products/show.html.erb within layouts/application
|
400
|
+
[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]]
|
401
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
402
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (13.5ms)
|
403
|
+
Rendered products/show.html.erb within layouts/application (31.0ms)
|
404
|
+
Completed 200 OK in 216ms (Views: 210.9ms | ActiveRecord: 0.5ms)
|
405
|
+
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:02:22 -0300
|
406
|
+
Processing by ProductsController#show as HTML
|
407
|
+
Parameters: {"show_log"=>"true", "id"=>"1"}
|
408
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
409
|
+
Rendering products/show.html.erb within layouts/application
|
410
|
+
[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]]
|
411
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
412
|
+
[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"]]
|
413
|
+
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
414
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
415
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.7ms)
|
416
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (6.7ms)
|
417
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (10.5ms)
|
418
|
+
Rendered products/show.html.erb within layouts/application (12.0ms)
|
419
|
+
Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.5ms)
|
420
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
421
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
422
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
423
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:02:22 UTC], ["updated_at", 2017-05-24 20:02:22 UTC]]
|
424
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
425
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
426
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:02:22 UTC], ["updated_at", 2017-05-24 20:02:22 UTC]]
|
427
|
+
[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]]
|
428
|
+
[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", "44ab377d-ec1e-416e-baeb-99c985e8f659"], ["created_at", 2017-05-24 20:02:22 UTC]]
|
429
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
430
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:02:22 -0300
|
431
|
+
Processing by ProductsController#show as HTML
|
432
|
+
Parameters: {"id"=>"1"}
|
433
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
434
|
+
Rendering products/show.html.erb within layouts/application
|
435
|
+
[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]]
|
436
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
437
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.4ms)
|
438
|
+
Rendered products/show.html.erb within layouts/application (4.9ms)
|
439
|
+
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)
|
440
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
441
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
442
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
443
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
|
444
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
445
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
446
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
|
447
|
+
[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]]
|
448
|
+
[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", "9247a947-9280-4ca2-973a-690eec9734f8"], ["created_at", 2017-05-24 20:03:11 UTC]]
|
449
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
450
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:11 -0300
|
451
|
+
Processing by ProductsController#show as HTML
|
452
|
+
Parameters: {"id"=>"1"}
|
453
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
454
|
+
Rendering products/show.html.erb within layouts/application
|
455
|
+
[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]]
|
456
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
457
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (6.7ms)
|
458
|
+
Rendered products/show.html.erb within layouts/application (16.8ms)
|
459
|
+
Completed 200 OK in 113ms (Views: 109.7ms | ActiveRecord: 0.4ms)
|
460
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
461
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
462
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
463
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
|
464
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
465
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
466
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
|
467
|
+
[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]]
|
468
|
+
[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", "59c3fdc3-921d-438e-bd47-c7aa91f9e7ce"], ["created_at", 2017-05-24 20:03:11 UTC]]
|
469
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
470
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:11 -0300
|
471
|
+
Processing by ProductsController#show as HTML
|
472
|
+
Parameters: {"id"=>"1"}
|
473
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
474
|
+
Rendering products/show.html.erb within layouts/application
|
475
|
+
[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]]
|
476
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
477
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.8ms)
|
478
|
+
Rendered products/show.html.erb within layouts/application (7.9ms)
|
479
|
+
Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.5ms)
|
480
|
+
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:03:11 -0300
|
481
|
+
Processing by ProductsController#show as HTML
|
482
|
+
Parameters: {"show_log"=>"true", "id"=>"1"}
|
483
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
484
|
+
Rendering products/show.html.erb within layouts/application
|
485
|
+
[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]]
|
486
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
487
|
+
[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"]]
|
488
|
+
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
489
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
490
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.2ms)
|
491
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.4ms)
|
492
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (12.6ms)
|
493
|
+
Rendered products/show.html.erb within layouts/application (14.0ms)
|
494
|
+
Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.7ms)
|
495
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
496
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
497
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
498
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:17 UTC], ["updated_at", 2017-05-24 20:03:17 UTC]]
|
499
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
500
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
501
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:17 UTC], ["updated_at", 2017-05-24 20:03:17 UTC]]
|
502
|
+
[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]]
|
503
|
+
[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", "247692e4-5d18-4063-a40c-73e1f7a38910"], ["created_at", 2017-05-24 20:03:17 UTC]]
|
504
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
505
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:17 -0300
|
506
|
+
Processing by ProductsController#show as HTML
|
507
|
+
Parameters: {"id"=>"1"}
|
508
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
509
|
+
Rendering products/show.html.erb within layouts/application
|
510
|
+
[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]]
|
511
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
512
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (7.0ms)
|
513
|
+
Rendered products/show.html.erb within layouts/application (16.7ms)
|
514
|
+
Completed 200 OK in 112ms (Views: 109.2ms | ActiveRecord: 0.4ms)
|
515
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
516
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
517
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
518
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:18 UTC], ["updated_at", 2017-05-24 20:03:18 UTC]]
|
519
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
520
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
521
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:18 UTC], ["updated_at", 2017-05-24 20:03:18 UTC]]
|
522
|
+
[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]]
|
523
|
+
[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", "5d0bbe25-b8b8-44bf-9236-518c3cc5994f"], ["created_at", 2017-05-24 20:03:18 UTC]]
|
524
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
525
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:18 -0300
|
526
|
+
Processing by ProductsController#show as HTML
|
527
|
+
Parameters: {"id"=>"1"}
|
528
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
529
|
+
Rendering products/show.html.erb within layouts/application
|
530
|
+
[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]]
|
531
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
532
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.1ms)
|
533
|
+
Rendered products/show.html.erb within layouts/application (5.8ms)
|
534
|
+
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms)
|
535
|
+
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:03:18 -0300
|
536
|
+
Processing by ProductsController#show as HTML
|
537
|
+
Parameters: {"show_log"=>"true", "id"=>"1"}
|
538
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
539
|
+
Rendering products/show.html.erb within layouts/application
|
540
|
+
[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]]
|
541
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
542
|
+
[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"]]
|
543
|
+
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
544
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
545
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.9ms)
|
546
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (7.5ms)
|
547
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (12.3ms)
|
548
|
+
Rendered products/show.html.erb within layouts/application (14.4ms)
|
549
|
+
Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.6ms)
|
550
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
551
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
552
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
553
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
|
554
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
555
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
556
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
|
557
|
+
[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]]
|
558
|
+
[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", "7aae40ec-d30a-4ad4-b151-a84c48b30350"], ["created_at", 2017-05-24 20:03:22 UTC]]
|
559
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
560
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:22 -0300
|
561
|
+
Processing by ProductsController#show as HTML
|
562
|
+
Parameters: {"id"=>"1"}
|
563
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
564
|
+
Rendering products/show.html.erb within layouts/application
|
565
|
+
[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]]
|
566
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
567
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (6.9ms)
|
568
|
+
Rendered products/show.html.erb within layouts/application (16.6ms)
|
569
|
+
Completed 200 OK in 166ms (Views: 162.9ms | ActiveRecord: 0.4ms)
|
570
|
+
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:03:22 -0300
|
571
|
+
Processing by ProductsController#show as HTML
|
572
|
+
Parameters: {"show_log"=>"true", "id"=>"1"}
|
573
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
574
|
+
Rendering products/show.html.erb within layouts/application
|
575
|
+
[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]]
|
576
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
577
|
+
[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"]]
|
578
|
+
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
579
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
580
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.0ms)
|
581
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (5.9ms)
|
582
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (9.6ms)
|
583
|
+
Rendered products/show.html.erb within layouts/application (11.0ms)
|
584
|
+
Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.5ms)
|
585
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
586
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
587
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
588
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
|
589
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
590
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
591
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
|
592
|
+
[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]]
|
593
|
+
[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", "c95ed066-e4d5-41b7-8071-35a6f7fe68e7"], ["created_at", 2017-05-24 20:03:22 UTC]]
|
594
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
595
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:22 -0300
|
596
|
+
Processing by ProductsController#show as HTML
|
597
|
+
Parameters: {"id"=>"1"}
|
598
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
599
|
+
Rendering products/show.html.erb within layouts/application
|
600
|
+
[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]]
|
601
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
602
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.3ms)
|
603
|
+
Rendered products/show.html.erb within layouts/application (4.9ms)
|
604
|
+
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)
|
605
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
606
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
607
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
608
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
609
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
610
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
611
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
612
|
+
[1m[35m (30.7ms)[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
|
613
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
614
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
615
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
616
|
+
FROM sqlite_master
|
617
|
+
WHERE name='associated_index' AND type='index'
|
618
|
+
UNION ALL
|
619
|
+
SELECT sql
|
620
|
+
FROM sqlite_temp_master
|
621
|
+
WHERE name='associated_index' AND type='index'
|
622
|
+
[0m
|
623
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
624
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
625
|
+
FROM sqlite_master
|
626
|
+
WHERE name='auditable_index' AND type='index'
|
627
|
+
UNION ALL
|
628
|
+
SELECT sql
|
629
|
+
FROM sqlite_temp_master
|
630
|
+
WHERE name='auditable_index' AND type='index'
|
631
|
+
[0m
|
632
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
633
|
+
FROM sqlite_master
|
634
|
+
WHERE name='associated_index' AND type='index'
|
635
|
+
UNION ALL
|
636
|
+
SELECT sql
|
637
|
+
FROM sqlite_temp_master
|
638
|
+
WHERE name='associated_index' AND type='index'
|
639
|
+
[0m
|
640
|
+
[1m[35m (12.7ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
641
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
642
|
+
FROM sqlite_master
|
643
|
+
WHERE name='index_audits_on_created_at' AND type='index'
|
644
|
+
UNION ALL
|
645
|
+
SELECT sql
|
646
|
+
FROM sqlite_temp_master
|
647
|
+
WHERE name='index_audits_on_created_at' AND type='index'
|
648
|
+
[0m
|
649
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
650
|
+
FROM sqlite_master
|
651
|
+
WHERE name='auditable_index' AND type='index'
|
652
|
+
UNION ALL
|
653
|
+
SELECT sql
|
654
|
+
FROM sqlite_temp_master
|
655
|
+
WHERE name='auditable_index' AND type='index'
|
656
|
+
[0m
|
657
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
658
|
+
FROM sqlite_master
|
659
|
+
WHERE name='associated_index' AND type='index'
|
660
|
+
UNION ALL
|
661
|
+
SELECT sql
|
662
|
+
FROM sqlite_temp_master
|
663
|
+
WHERE name='associated_index' AND type='index'
|
664
|
+
[0m
|
665
|
+
[1m[35m (15.7ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
666
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
667
|
+
FROM sqlite_master
|
668
|
+
WHERE name='index_audits_on_request_uuid' AND type='index'
|
669
|
+
UNION ALL
|
670
|
+
SELECT sql
|
671
|
+
FROM sqlite_temp_master
|
672
|
+
WHERE name='index_audits_on_request_uuid' AND type='index'
|
673
|
+
[0m
|
674
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
675
|
+
FROM sqlite_master
|
676
|
+
WHERE name='index_audits_on_created_at' AND type='index'
|
677
|
+
UNION ALL
|
678
|
+
SELECT sql
|
679
|
+
FROM sqlite_temp_master
|
680
|
+
WHERE name='index_audits_on_created_at' AND type='index'
|
681
|
+
[0m
|
682
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
683
|
+
FROM sqlite_master
|
684
|
+
WHERE name='auditable_index' AND type='index'
|
685
|
+
UNION ALL
|
686
|
+
SELECT sql
|
687
|
+
FROM sqlite_temp_master
|
688
|
+
WHERE name='auditable_index' AND type='index'
|
689
|
+
[0m
|
690
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
691
|
+
FROM sqlite_master
|
692
|
+
WHERE name='associated_index' AND type='index'
|
693
|
+
UNION ALL
|
694
|
+
SELECT sql
|
695
|
+
FROM sqlite_temp_master
|
696
|
+
WHERE name='associated_index' AND type='index'
|
697
|
+
[0m
|
698
|
+
[1m[35m (13.6ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
699
|
+
[1m[35m (12.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
|
700
|
+
[1m[35m (12.9ms)[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
|
701
|
+
[1m[35m (14.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
702
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
703
|
+
[1m[35m (14.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20170507191539)[0m
|
704
|
+
[1m[35m (12.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
705
|
+
(20170507023018),
|
706
|
+
(20170507023113);
|
707
|
+
|
708
|
+
[0m
|
709
|
+
[1m[35m (19.3ms)[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
|
710
|
+
[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]]
|
711
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
712
|
+
[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-24 20:04:17 UTC], ["updated_at", 2017-05-24 20:04:17 UTC]]
|
713
|
+
[1m[35m (12.7ms)[0m [1m[36mcommit transaction[0m
|
714
|
+
[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]]
|
715
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
716
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
717
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
718
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
719
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
|
720
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
721
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
722
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
|
723
|
+
[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]]
|
724
|
+
[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", "5716d7cd-b3ca-4550-9a8b-60a52e558034"], ["created_at", 2017-05-24 20:04:19 UTC]]
|
725
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
726
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:04:19 -0300
|
727
|
+
Processing by ProductsController#show as HTML
|
728
|
+
Parameters: {"id"=>"1"}
|
729
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
730
|
+
Rendering products/show.html.erb within layouts/application
|
731
|
+
[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]]
|
732
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
733
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (6.8ms)
|
734
|
+
Rendered products/show.html.erb within layouts/application (16.9ms)
|
735
|
+
Completed 200 OK in 152ms (Views: 149.6ms | ActiveRecord: 0.4ms)
|
736
|
+
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:04:19 -0300
|
737
|
+
Processing by ProductsController#show as HTML
|
738
|
+
Parameters: {"show_log"=>"true", "id"=>"1"}
|
739
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
740
|
+
Rendering products/show.html.erb within layouts/application
|
741
|
+
[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]]
|
742
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
743
|
+
[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"]]
|
744
|
+
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
745
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
746
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.0ms)
|
747
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (5.9ms)
|
748
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (9.9ms)
|
749
|
+
Rendered products/show.html.erb within layouts/application (11.5ms)
|
750
|
+
Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.5ms)
|
751
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
752
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
753
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
754
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
|
755
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
756
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
757
|
+
[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", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
|
758
|
+
[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]]
|
759
|
+
[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", "d479c820-e51e-42a6-ad03-93634030a648"], ["created_at", 2017-05-24 20:04:19 UTC]]
|
760
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
761
|
+
Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:04:19 -0300
|
762
|
+
Processing by ProductsController#show as HTML
|
763
|
+
Parameters: {"id"=>"1"}
|
764
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
765
|
+
Rendering products/show.html.erb within layouts/application
|
766
|
+
[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]]
|
767
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
768
|
+
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.4ms)
|
769
|
+
Rendered products/show.html.erb within layouts/application (4.9ms)
|
770
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms)
|
771
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3l/3lTfVt5mnUw_pwWB-EWfV7v3nBpF6w9PWzx_OY0d5Uo.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/47/47N7l6uHSjSCd7Ru3vJ0JoBp9dFdqA8phU8uKIjIvqM.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%TT4��
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BN/BNy5uhInXB0ihf1X9XEjYXOTQzS7LxrBtFhdfyIdeqA.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=f02357ba82c93bad35fd1bd66ae6ba8fdf3b1cf45d9bb860e4648ed334db0cb2:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache
CHANGED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OJ/OJ1uiUYKQmWd42oIWTlWOfjdMwo2HqQUv4bwvFozlgo.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�d�-�K���`���8Y��3�/Y����a~K
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXWdn9vE2KzoWk1Tgi3J7onOHM0xGEFYOD1Hg0h_bS0.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkhAoD3YaK1D-UYeKoFVVgr69lnTZMSQqUfczLbJ5NE.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"}app/assets/stylesheets/application.css?type=text/css&id=71be6e483241068536ad5ceecd874a535d86ecffb02d23466997091ba90786f6:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SV/SVlVMncJi5iECzorG_xSmMvxIdCpAUPWeqLkXBRXKpM.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VR/VReNvp0QHy6LIJW8nYxURZoy5zbXKlkoMwR1TKWY-VQ.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�/home/douglas/.rvm/gems/ruby-2.4.1/gems/actioncable-5.0.2/lib/assets/compiled/action_cable.js?type=application/javascript&pipeline=self&id=0e5ff29a10fb79c367f58aac99f1baaa2417830bbf4dd03de2f0bbb2b0a0bb54:ET
|