spec/dummy/log/test.log in audited_views-0.0.6 vs spec/dummy/log/test.log in audited_views-0.0.7
- old
+ new
@@ -79,5 +79,170 @@
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (5.2ms)
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (7.9ms)
Rendered products/show.html.erb within layouts/application (8.3ms)
Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2019-03-17 18:09:16.435500"], ["updated_at", "2019-03-17 18:09:16.435500"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mProduct Create (0.3ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2019-03-17 18:09:16.449291"], ["updated_at", "2019-03-17 18:09:16.449291"]]
+ [1m[35m (0.7ms)[0m [1m[34mSELECT MAX("audits"."version") FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ?[0m [["auditable_id", 1], ["auditable_type", "Product"]]
+ [1m[36mAudited::Audit Create (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", "c61b0471-d4f8-4624-ba10-9c7025823bde"], ["created_at", "2019-03-17 18:09:16.473018"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Started GET "/products/1" for 127.0.0.1 at 2019-03-17 15:09:16 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (7.1ms)
+ Rendered products/show.html.erb within layouts/application (14.0ms)
+Completed 200 OK in 195ms (Views: 192.4ms | ActiveRecord: 0.5ms)
+Started GET "/products/1?show_log=true" for 127.0.0.1 at 2019-03-17 15:09:16 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"show_log"=>"true", "id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [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"]]
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.5ms)
+ Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (15.1ms)
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (21.7ms)
+ Rendered products/show.html.erb within layouts/application (22.1ms)
+Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.7ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2019-03-17 18:09:16.714195"], ["updated_at", "2019-03-17 18:09:16.714195"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mProduct Create (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2019-03-17 18:09:16.715842"], ["updated_at", "2019-03-17 18:09:16.715842"]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT MAX("audits"."version") FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ?[0m [["auditable_id", 1], ["auditable_type", "Product"]]
+ [1m[36mAudited::Audit Create (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", "c5a6cb3f-0406-448c-bbd9-1fa215c649a9"], ["created_at", "2019-03-17 18:09:16.718841"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Started GET "/products/1" for 127.0.0.1 at 2019-03-17 15:09:16 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.1ms)
+ Rendered products/show.html.erb within layouts/application (4.0ms)
+Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2019-03-17 18:09:45.007535"], ["updated_at", "2019-03-17 18:09:45.007535"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mProduct Create (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2019-03-17 18:09:45.018991"], ["updated_at", "2019-03-17 18:09:45.018991"]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT MAX("audits"."version") FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ?[0m [["auditable_id", 1], ["auditable_type", "Product"]]
+ [1m[36mAudited::Audit Create (0.1ms)[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", "8a537915-b8cc-40be-b823-9d1035f9a57b"], ["created_at", "2019-03-17 18:09:45.040532"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Started GET "/products/1" for 127.0.0.1 at 2019-03-17 15:09:45 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.8ms)
+ Rendered products/show.html.erb within layouts/application (10.7ms)
+Completed 200 OK in 128ms (Views: 125.4ms | ActiveRecord: 0.4ms)
+Started GET "/products/1?show_log=true" for 127.0.0.1 at 2019-03-17 15:09:45 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"show_log"=>"true", "id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [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"]]
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (10.4ms)
+ Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (11.9ms)
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (14.6ms)
+ Rendered products/show.html.erb within layouts/application (15.0ms)
+Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2019-03-17 18:09:45.201990"], ["updated_at", "2019-03-17 18:09:45.201990"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mProduct Create (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2019-03-17 18:09:45.203273"], ["updated_at", "2019-03-17 18:09:45.203273"]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT MAX("audits"."version") FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ?[0m [["auditable_id", 1], ["auditable_type", "Product"]]
+ [1m[36mAudited::Audit Create (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", "c6157926-65db-42ef-93e3-dac3672c15a0"], ["created_at", "2019-03-17 18:09:45.205653"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Started GET "/products/1" for 127.0.0.1 at 2019-03-17 15:09:45 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.9ms)
+ Rendered products/show.html.erb within layouts/application (5.9ms)
+Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2019-03-17 18:11:15.885547"], ["updated_at", "2019-03-17 18:11:15.885547"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mProduct Create (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2019-03-17 18:11:15.898966"], ["updated_at", "2019-03-17 18:11:15.898966"]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT MAX("audits"."version") FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ?[0m [["auditable_id", 1], ["auditable_type", "Product"]]
+ [1m[36mAudited::Audit Create (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", "4904ebf8-2d5d-45e0-b9ea-840616a6b9a1"], ["created_at", "2019-03-17 18:11:15.919417"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Started GET "/products/1" for 127.0.0.1 at 2019-03-17 15:11:15 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.8ms)
+ Rendered products/show.html.erb within layouts/application (10.6ms)
+Completed 200 OK in 130ms (Views: 128.2ms | ActiveRecord: 0.4ms)
+Started GET "/products/1?show_log=true" for 127.0.0.1 at 2019-03-17 15:11:16 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"show_log"=>"true", "id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [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"]]
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (3.6ms)
+ Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (5.0ms)
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (7.4ms)
+ Rendered products/show.html.erb within layouts/application (7.8ms)
+Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2019-03-17 18:11:16.073637"], ["updated_at", "2019-03-17 18:11:16.073637"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mProduct Create (0.1ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2019-03-17 18:11:16.074753"], ["updated_at", "2019-03-17 18:11:16.074753"]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT MAX("audits"."version") FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ?[0m [["auditable_id", 1], ["auditable_type", "Product"]]
+ [1m[36mAudited::Audit Create (0.1ms)[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", "3d0e0b57-fdd1-4747-b187-a27c6da0bc66"], ["created_at", "2019-03-17 18:11:16.076649"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Started GET "/products/1" for 127.0.0.1 at 2019-03-17 15:11:16 -0300
+Processing by ProductsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering products/show.html.erb within layouts/application
+ [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]]
+ [1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (1.9ms)
+ Rendered products/show.html.erb within layouts/application (2.4ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m