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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/audited_views.css +6 -0
  3. data/app/helpers/audited_views_helper.rb +0 -1
  4. data/lib/audited_views/version.rb +1 -1
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. data/spec/dummy/log/test.log +386 -0
  7. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3l/3lTfVt5mnUw_pwWB-EWfV7v3nBpF6w9PWzx_OY0d5Uo.cache +0 -0
  8. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/47/47N7l6uHSjSCd7Ru3vJ0JoBp9dFdqA8phU8uKIjIvqM.cache +1 -0
  9. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BN/BNy5uhInXB0ihf1X9XEjYXOTQzS7LxrBtFhdfyIdeqA.cache +1 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +0 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OJ/OJ1uiUYKQmWd42oIWTlWOfjdMwo2HqQUv4bwvFozlgo.cache +1 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXWdn9vE2KzoWk1Tgi3J7onOHM0xGEFYOD1Hg0h_bS0.cache +0 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkhAoD3YaK1D-UYeKoFVVgr69lnTZMSQqUfczLbJ5NE.cache +1 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SV/SVlVMncJi5iECzorG_xSmMvxIdCpAUPWeqLkXBRXKpM.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VR/VReNvp0QHy6LIJW8nYxURZoy5zbXKlkoMwR1TKWY-VQ.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +0 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cj/cjNlSRlQtUDAwuCwO0GS59TcwcUey_SxumTMRMHp-Pc.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gQ/gQL5o0PwSkV6nDNQotitNefQRbps23gfbhd0spq4GYI.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lk/lkovZoGWsi9s_5nn1YPmKKPQO5Ip6AeKCDi1Fj94i4o.cache +3 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4b6OtLpnRvCY8QxV_G2w9l7YiS6Nb-1ZMXncJLuCxU.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +0 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pd/pdcYU2LAlzymtrkzi7c5N-62_9DiwuvZTHdXvi3LOH4.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQf8fS1PozjLFywxp2mh64LVU9thBA6Mb1eJDrXOwUo.cache +0 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wK/wKsc6LmmkCDdNh8zD8yfu_lyJjL3pK8f1BpTAXc-vH4.cache +1 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yX/yXva_dhsxO6Sjr1dHQF_cyEOGHd065bVtMaMDTBQzXU.cache +0 -0
  28. data/spec/dummy/tmp/capybara/capybara-2017052417022284173193.html +139 -0
  29. data/spec/dummy/tmp/capybara/capybara-201705241703119446562013.html +139 -0
  30. data/spec/dummy/tmp/capybara/capybara-20170524170318735562344.html +139 -0
  31. data/spec/dummy/tmp/capybara/capybara-20170524170322884470518.html +139 -0
  32. data/spec/dummy/tmp/capybara/capybara-201705241704194913728982.html +139 -0
  33. metadata +45 -3
  34. data/app/models/audit.rb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cc2db336495229e610ddb64a5d7c53334e2f1bd
4
- data.tar.gz: f1325bc6b96bddcd6b4334c54b99a333e14cf29c
3
+ metadata.gz: 714402b63644225becb5fcb054fa9423ee906e51
4
+ data.tar.gz: cbdb67ffc6bd33c8e758ef8d990502bc13e14a69
5
5
  SHA512:
6
- metadata.gz: d21d9ac6783e58790486caa41c472356e908937db7d610007504bb184a5bc3c11e046388ac03144fb864997e765e2f77a363c57ab74c9c918296ec95897c931c
7
- data.tar.gz: 2bfc81284d7d5d1a58db9cc161f387d9100dfb922b894f997cc9696453165f3c94cdf4f08d9a155122d765b4e0b7344b69d31d761fcf36c689a29f795a953e11
6
+ metadata.gz: 97572ca6c4c3972369b95044a2e2dff9a43a84897fe43bcddaffe2ff53f1c253a727e0dc9d210f8226884da7b8b7520499cd5be98d6ee71e269a930076504184
7
+ data.tar.gz: fb0c44430d9eb407c04b3385298c3904dc26e928174ee795139c21774433092913506ad417c93e63933e9db5e113f2086e570d98d0d9069961fc978e5031c759
@@ -0,0 +1,6 @@
1
+ ins.differ {
2
+ background-color: #afa;
3
+ }
4
+ del.differ {
5
+ background-color: #faa;
6
+ }
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AuditedViews
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
Binary file
@@ -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
   (0.2ms) rollback transaction
386
+  (0.3ms) begin transaction
387
+  (0.0ms) SAVEPOINT active_record_1
388
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:02:21 UTC], ["updated_at", 2017-05-24 20:02:21 UTC]]
389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
390
+  (0.1ms) SAVEPOINT active_record_1
391
+ SQL (2.6ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
393
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "62f49913-0e08-4a70-adab-946829009a1a"], ["created_at", 2017-05-24 20:02:21 UTC]]
394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
399
+ Rendering products/show.html.erb within layouts/application
400
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
409
+ Rendering products/show.html.erb within layouts/application
410
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
411
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
412
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
413
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
414
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["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
+  (0.2ms) rollback transaction
421
+  (0.1ms) begin transaction
422
+  (0.1ms) SAVEPOINT active_record_1
423
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:02:22 UTC], ["updated_at", 2017-05-24 20:02:22 UTC]]
424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
425
+  (0.0ms) SAVEPOINT active_record_1
426
+ SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
428
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "44ab377d-ec1e-416e-baeb-99c985e8f659"], ["created_at", 2017-05-24 20:02:22 UTC]]
429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
434
+ Rendering products/show.html.erb within layouts/application
435
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
436
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
441
+  (0.2ms) begin transaction
442
+  (0.0ms) SAVEPOINT active_record_1
443
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
445
+  (0.1ms) SAVEPOINT active_record_1
446
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
448
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "9247a947-9280-4ca2-973a-690eec9734f8"], ["created_at", 2017-05-24 20:03:11 UTC]]
449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
454
+ Rendering products/show.html.erb within layouts/application
455
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
456
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+  (0.2ms) rollback transaction
461
+  (0.0ms) begin transaction
462
+  (0.0ms) SAVEPOINT active_record_1
463
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
465
+  (0.0ms) SAVEPOINT active_record_1
466
+ SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
468
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "59c3fdc3-921d-438e-bd47-c7aa91f9e7ce"], ["created_at", 2017-05-24 20:03:11 UTC]]
469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
474
+ Rendering products/show.html.erb within layouts/application
475
+ Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
476
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
484
+ Rendering products/show.html.erb within layouts/application
485
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
486
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
487
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
488
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
489
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
496
+  (0.3ms) begin transaction
497
+  (0.1ms) SAVEPOINT active_record_1
498
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:17 UTC], ["updated_at", 2017-05-24 20:03:17 UTC]]
499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
500
+  (0.1ms) SAVEPOINT active_record_1
501
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
503
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "247692e4-5d18-4063-a40c-73e1f7a38910"], ["created_at", 2017-05-24 20:03:17 UTC]]
504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
509
+ Rendering products/show.html.erb within layouts/application
510
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+  (0.2ms) rollback transaction
516
+  (0.0ms) begin transaction
517
+  (0.0ms) SAVEPOINT active_record_1
518
+ SQL (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:18 UTC], ["updated_at", 2017-05-24 20:03:18 UTC]]
519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
520
+  (0.0ms) SAVEPOINT active_record_1
521
+ SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
523
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "5d0bbe25-b8b8-44bf-9236-518c3cc5994f"], ["created_at", 2017-05-24 20:03:18 UTC]]
524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
529
+ Rendering products/show.html.erb within layouts/application
530
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
531
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
539
+ Rendering products/show.html.erb within layouts/application
540
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
541
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
542
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
543
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
544
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
551
+  (0.3ms) begin transaction
552
+  (0.0ms) SAVEPOINT active_record_1
553
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
555
+  (0.0ms) SAVEPOINT active_record_1
556
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
558
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "7aae40ec-d30a-4ad4-b151-a84c48b30350"], ["created_at", 2017-05-24 20:03:22 UTC]]
559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
564
+ Rendering products/show.html.erb within layouts/application
565
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
574
+ Rendering products/show.html.erb within layouts/application
575
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
576
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
577
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
578
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
579
+ Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
586
+  (0.0ms) begin transaction
587
+  (0.0ms) SAVEPOINT active_record_1
588
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
590
+  (0.0ms) SAVEPOINT active_record_1
591
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
593
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "c95ed066-e4d5-41b7-8071-35a6f7fe68e7"], ["created_at", 2017-05-24 20:03:22 UTC]]
594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
599
+ Rendering products/show.html.erb within layouts/application
600
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
601
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
606
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
607
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
608
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
609
+  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
610
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
611
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
612
+  (30.7ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
613
+  (0.1ms) select sqlite_version(*)
614
+  (12.3ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
615
+  (0.1ms)  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
+ 
623
+  (12.9ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
624
+  (0.1ms)  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
+ 
632
+  (0.1ms)  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
+ 
640
+  (12.7ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
641
+  (0.1ms)  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
+ 
649
+  (0.1ms)  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
+ 
657
+  (0.1ms)  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
+ 
665
+  (15.7ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
666
+  (0.1ms)  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
+ 
674
+  (0.1ms)  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
+ 
682
+  (0.1ms)  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
+ 
690
+  (0.1ms)  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
+ 
698
+  (13.6ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
699
+  (12.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
700
+  (12.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
701
+  (14.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
702
+  (0.1ms) SELECT version FROM "schema_migrations"
703
+  (14.2ms) INSERT INTO "schema_migrations" (version) VALUES (20170507191539)
704
+  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES
705
+ (20170507023018),
706
+ (20170507023113);
707
+
708
+ 
709
+  (19.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
710
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
711
+  (0.1ms) begin transaction
712
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-24 20:04:17 UTC], ["updated_at", 2017-05-24 20:04:17 UTC]]
713
+  (12.7ms) commit transaction
714
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
715
+  (0.0ms) begin transaction
716
+  (0.0ms) commit transaction
717
+  (0.2ms) begin transaction
718
+  (0.0ms) SAVEPOINT active_record_1
719
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
721
+  (0.1ms) SAVEPOINT active_record_1
722
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
724
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "5716d7cd-b3ca-4550-9a8b-60a52e558034"], ["created_at", 2017-05-24 20:04:19 UTC]]
725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
730
+ Rendering products/show.html.erb within layouts/application
731
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
732
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
740
+ Rendering products/show.html.erb within layouts/application
741
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
742
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
743
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
744
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
745
+ Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
752
+  (0.0ms) begin transaction
753
+  (0.0ms) SAVEPOINT active_record_1
754
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
756
+  (0.1ms) SAVEPOINT active_record_1
757
+ SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
+ Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
759
+ SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "d479c820-e51e-42a6-ad03-93634030a648"], ["created_at", 2017-05-24 20:04:19 UTC]]
760
+  (0.2ms) RELEASE SAVEPOINT active_record_1
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
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
765
+ Rendering products/show.html.erb within layouts/application
766
+ Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
767
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=f02357ba82c93bad35fd1bd66ae6ba8fdf3b1cf45d9bb860e4648ed334db0cb2:ET
@@ -0,0 +1 @@
1
+ "%�d�-�K���`���8Y��3�͹/Y����a~K
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=71be6e483241068536ad5ceecd874a535d86ecffb02d23466997091ba90786f6:ET
@@ -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