audited_views 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/app/helpers/audited_views_helper.rb +1 -1
- data/lib/audited_views/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +23 -23
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +110 -0
- data/spec/dummy/log/test.log +70 -740
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{VO/VOse1hbRPubC1r_WKyZVcYG1tsb06PRsqYBTWSZ_4LQ.cache → -Y/-YymUmuvGh07mddnTJj_cgMSfx5quxjyGjRP7EkoTwQ.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{_T/_TaNU0GYb1Zzjzqn1bEXOa71HFfO3dCpQondp87sme0.cache → 0F/0F82Dfa41LKwbYBpctk03ybbzstbSP0kFKqQuIZ8c4k.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{pn/pneR-xUFEeqlsU0chMbmmftc6gAsfjtjN5OaIGlKhRI.cache → 0Y/0YYxZbmf4eBBrd4l2zVwyVJ8NWDsJNu5lQmw6pdnrP8.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Z3/Z3JitHcVFrpH_dDIHC8wcLgBbrOFH80aMYBrF8nd4tM.cache → 28/280SG7m3WfwQqx60QVG02lH7sA6Miv8_wvmILgBSOy8.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{G3/G3NDkLlk_SX3YG7k0awtx4zjVlakoKrntN0jsjSlAhQ.cache → 50/50kaaYySnZcG6Raj2DyAQkE9NVC7GOgEYExh-gwRUko.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8x/8xoBZbh_cvT9EjAppZfAwbyGkvyw33r6D4jEoXJ8E3g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Yu/YuPHwAJY0qdk1Fb45vssLS5M3MciX-sj_cQ9baUwa9U.cache → 9_/9_cM740XJw5nR9SOdODeRgZ4eQdzkrCQ9yOSRkSOXJo.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AJ/AJEKm6Si046b8FvMhfGSxStIrnFb1_mijaBgkRFOvqY.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/LW/LWvEFImqIeBZqMP8GEe0W5JhcxFKQaN6Yw4_ZjnZA_o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ll/LlDmEDut9KSHs1huPtez5pCrEStJ0xbv90BAvRL45Ek.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MR/MRBFJnLrCbpyUPTnvxqvXJQDeUDvjbYYVfPWmgSezKU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Rb/RbStQeBxEZI9BGCSMb0iROr94h-xJRSjqjiDo9IB4uo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S1/S1z7i-CVlvezwnGUmDwLsIiAkXiuvb3P40x892XT_Ek.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{S7/S7N-OOCIx75bN-VQuGH8Bs-NEQh0ssHghH7U96EBzM0.cache → Uc/Uc3Wj0ecUUV-OzjhYRhkFQcgpDv7wlcxvDh0eon4Hic.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{6I/6IckMLuSd1VjjIlhjnTs6QHUVroN9w04mXEBy0fU6kM.cache → Zo/ZoRCB1hJDKP7SXg8B_3fauzLx2sF-C1lYEU0Z-RGSag.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{qx/qxk5c2dD60rx2NJD_uhpqxuHoJLxv5XwxAZTALIICns.cache → _J/_JY2Q8WkSG3T9kGkKpz2J6Ir80JyQ-tZN9Cuml87J5I.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Zq/ZqwqzGmQdZwugVyeWaTsoSs1I-XBgeIBtazZxC4lYZs.cache → _t/_tt8wp32pp5L2O2X1uvsHznA2xTfTH4hlYOuNLMm97E.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/am/am7Do4UyDjVwvPQpzZ1T10Fv4xFg1lG-zyNHlic1lGs.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/cl/clNwTZeYerxRGUZRyrJDXfX5oH0sVH7V_Hkhjz3jRdY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{yX/yXva_dhsxO6Sjr1dHQF_cyEOGHd065bVtMaMDTBQzXU.cache → hS/hScHwzdjmcRoPHBILy-WfkEQLi5gtOBYL3AgJCGxRpk.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jm/jmAimAIDJ2Icw7Fv6FpfNt7NdkCVHbk1mS8IdM_UdNo.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/{RW/RWT2LDI5Hha4SP5FZXHASQrTckyYiN2XnYmK2vdeKPE.cache → rL/rL3RFcWrJkkySZ6fb9qysIUUyKU92tVZp2WQwra3QTw.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{R8/R8a1x_kIzFZki0ulOqRGqJfaA12mS9yybP1yhl5NY5Y.cache → so/soKEEdhfSxoebFItr1FUfHawl5ecABIKiGCYyQwG4uM.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{MJ/MJsVvHPcinS4hoxBd_MJ0yT7ViT4Ka6UMsRGGCuEMe0.cache → t7/t7hUrb4QUYgtLztKCrZMZZlEd_gFwKgCMj_lt_sh3pc.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uL/uL3i40dKCdUTUNjmQlXRC2qS4ikGaVYjRb_gMUFSgfo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uf/ufTRVvHuh0gVhWdEzeM4_SnvLslT7_C0AskKq45q10Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{q3/q3odLgZNiy989rT2dGN8sh88f9cbTIlXNBsMxVm-qO4.cache → xO/xORU3CObV7eAfbBcV5dj7qUZCqTZBgBwvFO-r0VBhCY.cache} +0 -0
- data/spec/dummy/tmp/capybara/{capybara-201705080936011266128551.html → capybara-201806202314198171543396.html} +5 -5
- metadata +117 -159
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-s/-sApyz8RREntIAnO7uawATjXPT2wvPX8w1wQF1XFuSs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3N/3NLOckzY84noY3hUEOd6K6Rfz7XB_fIRpHeGca6jXFQ.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3Y/3YWAsbouC_92KRyVIfCR1XZUL6aU5fDhsrDPZPwqLaw.cache +0 -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 +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/AlF65aLeuD-x6AxoO6n4G93XaQ5Nx0MU1FzfD4L3cPc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BN/BNy5uhInXB0ihf1X9XEjYXOTQzS7LxrBtFhdfyIdeqA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D0/D0cNdcvMptZ90AYLZ73Y5d3iFojSVkzXX1hn78q5VSU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nl/NlsP11HhLUppMbrveWN9hUdmj5EeypXs_8VJoP7EHCQ.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OJ/OJ1uiUYKQmWd42oIWTlWOfjdMwo2HqQUv4bwvFozlgo.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OU/OUrRymFy2GqVPmy2wEwtOU35eAGKpRc9Yd2s6FLH9IA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXWdn9vE2KzoWk1Tgi3J7onOHM0xGEFYOD1Hg0h_bS0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PHbdEchD5mfuw2iJHZ14bwbA5umhLrM_H7vcEPsnFBU.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkhAoD3YaK1D-UYeKoFVVgr69lnTZMSQqUfczLbJ5NE.cache +0 -1
- 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 +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bw/bwdvZFbg53AKcjymQ40V9gm6Lk-G_xPEv3mFu5uRSnU.cache +0 -3
- 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 +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lk/lkovZoGWsi9s_5nn1YPmKKPQO5Ip6AeKCDi1Fj94i4o.cache +0 -3
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4b6OtLpnRvCY8QxV_G2w9l7YiS6Nb-1ZMXncJLuCxU.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pd/pdcYU2LAlzymtrkzi7c5N-62_9DiwuvZTHdXvi3LOH4.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQf8fS1PozjLFywxp2mh64LVU9thBA6Mb1eJDrXOwUo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ru/ru-jaKyvWi9mo2jrTCMYECWtSm8wxxLH-UKNKEu2Uyk.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sE/sE5I8LMVqjxu0PHdY_io7wdnYvUQnL-YQaUIk8sw-M4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uU/uU7MDObelvIGwP_PhyWZ3qWYsbvuSdNJGFXkYIqtCEs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vV/vVAUGE3VA_1WPwDbZuHjuALjKVuSK8gJL3QGkUCz6us.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wK/wKsc6LmmkCDdNh8zD8yfu_lyJjL3pK8f1BpTAXc-vH4.cache +0 -1
- data/spec/dummy/tmp/capybara/capybara-201705080935504744542394.html +0 -139
- data/spec/dummy/tmp/capybara/capybara-201705080935583045830839.html +0 -139
- data/spec/dummy/tmp/capybara/capybara-2017052417022284173193.html +0 -139
- data/spec/dummy/tmp/capybara/capybara-201705241703119446562013.html +0 -139
- data/spec/dummy/tmp/capybara/capybara-20170524170318735562344.html +0 -139
- data/spec/dummy/tmp/capybara/capybara-20170524170322884470518.html +0 -139
- data/spec/dummy/tmp/capybara/capybara-201705241704194913728982.html +0 -139
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 79b8c85647989e55ae1358a178543c8270a64cd9bf6a9a009d8d24ba0dc47a6b
|
|
4
|
+
data.tar.gz: 74ce05cd1632bafefca5f48268b8b8c283d8e2f72b0444d9d9a4cd440e031aa0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad8da02ee31b6a46da45100497a3f1e1219736bb4d9d96b7b68ca5cdef967240d1536052356d03839ff47df39ef367359c2dd7e9d69576b8d9cb307da906870d
|
|
7
|
+
data.tar.gz: fd58b7808a50f309531be8eff1b672bbbb193feeead561da7d9c1f6fc022227a111147d7af93e1980accafc55a9c69067788700a473f1ba6e81ca1f1adaf54b0
|
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
#
|
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
|
12
12
|
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
|
13
|
+
ActiveRecord::Schema.define(version: 2017_05_07_191539) do
|
|
14
14
|
|
|
15
15
|
create_table "audits", force: :cascade do |t|
|
|
16
|
-
t.integer
|
|
17
|
-
t.string
|
|
18
|
-
t.integer
|
|
19
|
-
t.string
|
|
20
|
-
t.integer
|
|
21
|
-
t.string
|
|
22
|
-
t.string
|
|
23
|
-
t.string
|
|
24
|
-
t.text
|
|
25
|
-
t.integer
|
|
26
|
-
t.string
|
|
27
|
-
t.string
|
|
28
|
-
t.string
|
|
16
|
+
t.integer "auditable_id"
|
|
17
|
+
t.string "auditable_type"
|
|
18
|
+
t.integer "associated_id"
|
|
19
|
+
t.string "associated_type"
|
|
20
|
+
t.integer "user_id"
|
|
21
|
+
t.string "user_type"
|
|
22
|
+
t.string "username"
|
|
23
|
+
t.string "action"
|
|
24
|
+
t.text "audited_changes"
|
|
25
|
+
t.integer "version", default: 0
|
|
26
|
+
t.string "comment"
|
|
27
|
+
t.string "remote_address"
|
|
28
|
+
t.string "request_uuid"
|
|
29
29
|
t.datetime "created_at"
|
|
30
30
|
t.index ["associated_id", "associated_type"], name: "associated_index"
|
|
31
31
|
t.index ["auditable_id", "auditable_type"], name: "auditable_index"
|
|
@@ -35,18 +35,18 @@ ActiveRecord::Schema.define(version: 20170507191539) do
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
create_table "products", force: :cascade do |t|
|
|
38
|
-
t.string
|
|
39
|
-
t.string
|
|
40
|
-
t.decimal
|
|
41
|
-
t.boolean
|
|
42
|
-
t.text
|
|
43
|
-
t.datetime "created_at",
|
|
44
|
-
t.datetime "updated_at",
|
|
38
|
+
t.string "sku"
|
|
39
|
+
t.string "title"
|
|
40
|
+
t.decimal "price"
|
|
41
|
+
t.boolean "active"
|
|
42
|
+
t.text "description"
|
|
43
|
+
t.datetime "created_at", null: false
|
|
44
|
+
t.datetime "updated_at", null: false
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
create_table "users", force: :cascade do |t|
|
|
48
|
-
t.string
|
|
49
|
-
t.string
|
|
48
|
+
t.string "name"
|
|
49
|
+
t.string "email"
|
|
50
50
|
t.datetime "created_at", null: false
|
|
51
51
|
t.datetime "updated_at", null: false
|
|
52
52
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
2
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
3
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
4
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
5
|
+
by setting up a rake task which runs
|
|
6
|
+
|
|
7
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
8
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
9
|
+
|
|
10
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
11
|
+
true by adding the following to your application.rb file:
|
|
12
|
+
|
|
13
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
14
|
+
(called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
|
|
15
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
16
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
17
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
18
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
19
|
+
by setting up a rake task which runs
|
|
20
|
+
|
|
21
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
22
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
23
|
+
|
|
24
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
25
|
+
true by adding the following to your application.rb file:
|
|
26
|
+
|
|
27
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
28
|
+
(called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
|
|
29
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
30
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
31
|
+
[1m[35m (1.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
|
|
32
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
33
|
+
Migrating to CreateProducts (20170507023018)
|
|
34
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
35
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
36
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507023018"]]
|
|
37
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
|
38
|
+
Migrating to CreateUsers (20170507023113)
|
|
39
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
40
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507023113"]]
|
|
42
|
+
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
|
43
|
+
Migrating to InstallAudited (20170507191539)
|
|
44
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
45
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "audits"[0m
|
|
46
|
+
[1m[35m (0.4ms)[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
|
|
47
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
|
48
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
|
49
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
50
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
51
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
52
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507191539"]]
|
|
53
|
+
[1m[35m (3.3ms)[0m [1m[36mcommit transaction[0m
|
|
54
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
55
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
56
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-21 02:11:57.885505"], ["updated_at", "2018-06-21 02:11:57.885505"]]
|
|
57
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
|
58
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
59
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
60
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
61
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
62
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
63
|
+
by setting up a rake task which runs
|
|
64
|
+
|
|
65
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
66
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
67
|
+
|
|
68
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
69
|
+
true by adding the following to your application.rb file:
|
|
70
|
+
|
|
71
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
72
|
+
(called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
|
|
73
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
74
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
75
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
76
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
77
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
78
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
79
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
80
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
81
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
82
|
+
by setting up a rake task which runs
|
|
83
|
+
|
|
84
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
85
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
86
|
+
|
|
87
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
88
|
+
true by adding the following to your application.rb file:
|
|
89
|
+
|
|
90
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
91
|
+
(called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
|
|
92
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
93
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
94
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
95
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
96
|
+
by setting up a rake task which runs
|
|
97
|
+
|
|
98
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
99
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
100
|
+
|
|
101
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
102
|
+
true by adding the following to your application.rb file:
|
|
103
|
+
|
|
104
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
105
|
+
(called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
|
|
106
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
107
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
108
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
109
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
|
110
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
data/spec/dummy/log/test.log
CHANGED
|
@@ -1,771 +1,101 @@
|
|
|
1
|
-
[1m[35m (
|
|
1
|
+
[1m[35m (3.4ms)[0m [1m[36mbegin transaction[0m
|
|
2
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
3
|
+
[1m[35m (1.0ms)[0m [1m[36mbegin transaction[0m
|
|
2
4
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
3
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
4
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
5
|
-
[1m[35m (23.1ms)[0m [1m[35mCREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)[0m
|
|
6
|
-
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
|
7
|
-
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
|
8
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
9
|
-
FROM sqlite_master
|
|
10
|
-
WHERE name='associated_index' AND type='index'
|
|
11
|
-
UNION ALL
|
|
12
|
-
SELECT sql
|
|
13
|
-
FROM sqlite_temp_master
|
|
14
|
-
WHERE name='associated_index' AND type='index'
|
|
15
|
-
[0m
|
|
16
|
-
[1m[35m (10.6ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
|
17
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
18
|
-
FROM sqlite_master
|
|
19
|
-
WHERE name='auditable_index' AND type='index'
|
|
20
|
-
UNION ALL
|
|
21
|
-
SELECT sql
|
|
22
|
-
FROM sqlite_temp_master
|
|
23
|
-
WHERE name='auditable_index' AND type='index'
|
|
24
|
-
[0m
|
|
25
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
26
|
-
FROM sqlite_master
|
|
27
|
-
WHERE name='associated_index' AND type='index'
|
|
28
|
-
UNION ALL
|
|
29
|
-
SELECT sql
|
|
30
|
-
FROM sqlite_temp_master
|
|
31
|
-
WHERE name='associated_index' AND type='index'
|
|
32
|
-
[0m
|
|
33
|
-
[1m[35m (10.7ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
34
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
35
|
-
FROM sqlite_master
|
|
36
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
37
|
-
UNION ALL
|
|
38
|
-
SELECT sql
|
|
39
|
-
FROM sqlite_temp_master
|
|
40
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
41
|
-
[0m
|
|
42
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
43
|
-
FROM sqlite_master
|
|
44
|
-
WHERE name='auditable_index' AND type='index'
|
|
45
|
-
UNION ALL
|
|
46
|
-
SELECT sql
|
|
47
|
-
FROM sqlite_temp_master
|
|
48
|
-
WHERE name='auditable_index' AND type='index'
|
|
49
|
-
[0m
|
|
50
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
51
|
-
FROM sqlite_master
|
|
52
|
-
WHERE name='associated_index' AND type='index'
|
|
53
|
-
UNION ALL
|
|
54
|
-
SELECT sql
|
|
55
|
-
FROM sqlite_temp_master
|
|
56
|
-
WHERE name='associated_index' AND type='index'
|
|
57
|
-
[0m
|
|
58
|
-
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
59
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
60
|
-
FROM sqlite_master
|
|
61
|
-
WHERE name='index_audits_on_request_uuid' AND type='index'
|
|
62
|
-
UNION ALL
|
|
63
|
-
SELECT sql
|
|
64
|
-
FROM sqlite_temp_master
|
|
65
|
-
WHERE name='index_audits_on_request_uuid' AND type='index'
|
|
66
|
-
[0m
|
|
67
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
68
|
-
FROM sqlite_master
|
|
69
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
70
|
-
UNION ALL
|
|
71
|
-
SELECT sql
|
|
72
|
-
FROM sqlite_temp_master
|
|
73
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
74
|
-
[0m
|
|
75
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
76
|
-
FROM sqlite_master
|
|
77
|
-
WHERE name='auditable_index' AND type='index'
|
|
78
|
-
UNION ALL
|
|
79
|
-
SELECT sql
|
|
80
|
-
FROM sqlite_temp_master
|
|
81
|
-
WHERE name='auditable_index' AND type='index'
|
|
82
|
-
[0m
|
|
83
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
84
|
-
FROM sqlite_master
|
|
85
|
-
WHERE name='associated_index' AND type='index'
|
|
86
|
-
UNION ALL
|
|
87
|
-
SELECT sql
|
|
88
|
-
FROM sqlite_temp_master
|
|
89
|
-
WHERE name='associated_index' AND type='index'
|
|
90
|
-
[0m
|
|
91
|
-
[1m[35m (11.7ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
92
|
-
[1m[35m (12.3ms)[0m [1m[35mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
93
|
-
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
94
|
-
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
95
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
96
|
-
[1m[35m (10.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20170507191539)[0m
|
|
97
|
-
[1m[35m (10.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
|
98
|
-
(20170507023018),
|
|
99
|
-
(20170507023113);
|
|
100
|
-
|
|
101
|
-
[0m
|
|
102
|
-
[1m[35m (12.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
103
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
104
5
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
105
|
-
[1m[
|
|
106
|
-
[1m[35m (11.2ms)[0m [1m[36mcommit transaction[0m
|
|
107
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
6
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
108
7
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
109
|
-
[1m[35m (0.0ms)[0m [1m[
|
|
110
|
-
[1m[35m (0.
|
|
111
|
-
[1m[35m (0.1ms)[0m [1m[
|
|
112
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
|
|
113
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
114
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
115
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:375b1f8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
|
|
116
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
117
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "d9a6a17e-5235-46e2-a037-474ddd818b86"], ["created_at", 2017-05-08 12:35:50 UTC]]
|
|
118
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
119
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
|
|
120
|
-
Processing by ProductsController#show as HTML
|
|
121
|
-
Parameters: {"id"=>"1"}
|
|
122
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
123
|
-
Rendering products/show.html.erb within layouts/application
|
|
124
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
125
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
126
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (21.6ms)
|
|
127
|
-
Rendered products/show.html.erb within layouts/application (47.4ms)
|
|
128
|
-
Completed 200 OK in 233ms (Views: 214.4ms | ActiveRecord: 0.5ms)
|
|
129
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
8
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
|
9
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
|
10
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
130
11
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
131
|
-
[1m[35m (0.1ms)[0m [1m[
|
|
132
|
-
[1m[
|
|
133
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
134
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
135
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:6bbcbb8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
|
|
136
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
137
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "b4626db5-205e-411d-b256-ff38c2608cec"], ["created_at", 2017-05-08 12:35:50 UTC]]
|
|
138
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
139
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
|
|
140
|
-
Processing by ProductsController#show as HTML
|
|
141
|
-
Parameters: {"id"=>"1"}
|
|
142
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
143
|
-
Rendering products/show.html.erb within layouts/application
|
|
144
|
-
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
145
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
146
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.1ms)
|
|
147
|
-
Rendered products/show.html.erb within layouts/application (7.4ms)
|
|
148
|
-
Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.4ms)
|
|
149
|
-
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
|
|
150
|
-
Processing by ProductsController#show as HTML
|
|
151
|
-
Parameters: {"show_log"=>"true", "id"=>"1"}
|
|
152
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
153
|
-
Rendering products/show.html.erb within layouts/application
|
|
154
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
155
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
156
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
157
|
-
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
158
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
159
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (10.0ms)
|
|
160
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (13.0ms)
|
|
161
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (20.0ms)
|
|
162
|
-
Rendered products/show.html.erb within layouts/application (22.6ms)
|
|
163
|
-
Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.7ms)
|
|
12
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
13
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
|
164
14
|
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
165
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
166
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
|
167
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
168
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
|
169
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
170
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
|
171
|
-
[1m[35m (14.5ms)[0m [1m[35mCREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)[0m
|
|
172
|
-
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
|
173
|
-
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
|
174
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
175
|
-
FROM sqlite_master
|
|
176
|
-
WHERE name='associated_index' AND type='index'
|
|
177
|
-
UNION ALL
|
|
178
|
-
SELECT sql
|
|
179
|
-
FROM sqlite_temp_master
|
|
180
|
-
WHERE name='associated_index' AND type='index'
|
|
181
|
-
[0m
|
|
182
|
-
[1m[35m (11.6ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
|
183
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
184
|
-
FROM sqlite_master
|
|
185
|
-
WHERE name='auditable_index' AND type='index'
|
|
186
|
-
UNION ALL
|
|
187
|
-
SELECT sql
|
|
188
|
-
FROM sqlite_temp_master
|
|
189
|
-
WHERE name='auditable_index' AND type='index'
|
|
190
|
-
[0m
|
|
191
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
192
|
-
FROM sqlite_master
|
|
193
|
-
WHERE name='associated_index' AND type='index'
|
|
194
|
-
UNION ALL
|
|
195
|
-
SELECT sql
|
|
196
|
-
FROM sqlite_temp_master
|
|
197
|
-
WHERE name='associated_index' AND type='index'
|
|
198
|
-
[0m
|
|
199
|
-
[1m[35m (10.4ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
200
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
201
|
-
FROM sqlite_master
|
|
202
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
203
|
-
UNION ALL
|
|
204
|
-
SELECT sql
|
|
205
|
-
FROM sqlite_temp_master
|
|
206
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
207
|
-
[0m
|
|
208
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
209
|
-
FROM sqlite_master
|
|
210
|
-
WHERE name='auditable_index' AND type='index'
|
|
211
|
-
UNION ALL
|
|
212
|
-
SELECT sql
|
|
213
|
-
FROM sqlite_temp_master
|
|
214
|
-
WHERE name='auditable_index' AND type='index'
|
|
215
|
-
[0m
|
|
216
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
217
|
-
FROM sqlite_master
|
|
218
|
-
WHERE name='associated_index' AND type='index'
|
|
219
|
-
UNION ALL
|
|
220
|
-
SELECT sql
|
|
221
|
-
FROM sqlite_temp_master
|
|
222
|
-
WHERE name='associated_index' AND type='index'
|
|
223
|
-
[0m
|
|
224
|
-
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
225
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
226
|
-
FROM sqlite_master
|
|
227
|
-
WHERE name='index_audits_on_request_uuid' AND type='index'
|
|
228
|
-
UNION ALL
|
|
229
|
-
SELECT sql
|
|
230
|
-
FROM sqlite_temp_master
|
|
231
|
-
WHERE name='index_audits_on_request_uuid' AND type='index'
|
|
232
|
-
[0m
|
|
233
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
|
234
|
-
FROM sqlite_master
|
|
235
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
236
|
-
UNION ALL
|
|
237
|
-
SELECT sql
|
|
238
|
-
FROM sqlite_temp_master
|
|
239
|
-
WHERE name='index_audits_on_created_at' AND type='index'
|
|
240
|
-
[0m
|
|
241
|
-
[1m[35m (0.2ms)[0m [1m[34m SELECT sql
|
|
242
|
-
FROM sqlite_master
|
|
243
|
-
WHERE name='auditable_index' AND type='index'
|
|
244
|
-
UNION ALL
|
|
245
|
-
SELECT sql
|
|
246
|
-
FROM sqlite_temp_master
|
|
247
|
-
WHERE name='auditable_index' AND type='index'
|
|
248
|
-
[0m
|
|
249
|
-
[1m[35m (0.4ms)[0m [1m[34m SELECT sql
|
|
250
|
-
FROM sqlite_master
|
|
251
|
-
WHERE name='associated_index' AND type='index'
|
|
252
|
-
UNION ALL
|
|
253
|
-
SELECT sql
|
|
254
|
-
FROM sqlite_temp_master
|
|
255
|
-
WHERE name='associated_index' AND type='index'
|
|
256
|
-
[0m
|
|
257
|
-
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
258
|
-
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
259
|
-
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
260
|
-
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
261
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
262
|
-
[1m[35m (10.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20170507191539)[0m
|
|
263
|
-
[1m[35m (8.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
|
264
|
-
(20170507023018),
|
|
265
|
-
(20170507023113);
|
|
266
|
-
|
|
267
|
-
[0m
|
|
268
|
-
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
269
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
|
270
15
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
271
|
-
[1m[
|
|
272
|
-
[1m[35m (
|
|
273
|
-
[1m[
|
|
16
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
|
17
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
18
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
19
|
+
[1m[35m (2.9ms)[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
|
|
20
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
21
|
+
Migrating to CreateProducts (20170507023018)
|
|
22
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
23
|
+
[1m[35m (0.6ms)[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
|
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507023018"]]
|
|
25
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
|
26
|
+
Migrating to CreateUsers (20170507023113)
|
|
27
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
28
|
+
[1m[35m (0.4ms)[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
|
|
29
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507023113"]]
|
|
30
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
|
31
|
+
Migrating to InstallAudited (20170507191539)
|
|
32
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
33
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "audits"[0m
|
|
34
|
+
[1m[35m (0.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
|
|
35
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")[0m
|
|
36
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")[0m
|
|
37
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "user_index" ON "audits" ("user_id", "user_type")[0m
|
|
38
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")[0m
|
|
39
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")[0m
|
|
40
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170507191539"]]
|
|
41
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
|
42
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
43
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
44
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-21 02:14:15.101229"], ["updated_at", "2018-06-21 02:14:15.101229"]]
|
|
45
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
|
46
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
274
47
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
275
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
276
|
-
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
|
277
48
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
278
|
-
[1m[
|
|
279
|
-
[1m[35m (0.
|
|
49
|
+
[1m[36mUser Create (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2018-06-21 02:14:19.259093"], ["updated_at", "2018-06-21 02:14:19.259093"]]
|
|
50
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
280
51
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
281
|
-
[1m[
|
|
282
|
-
[1m[36mAudited::Audit Load (0.
|
|
283
|
-
[1m[
|
|
52
|
+
[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", "2018-06-21 02:14:19.285076"], ["updated_at", "2018-06-21 02:14:19.285076"]]
|
|
53
|
+
[1m[36mAudited::Audit Load (0.4ms)[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]]
|
|
54
|
+
[1m[36mAudited::Audit Create (1.5ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "98490529-f9fe-450f-a7ba-6b35b694409f"], ["created_at", "2018-06-21 02:14:19.345277"]]
|
|
284
55
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
285
|
-
Started GET "/products/1" for 127.0.0.1 at
|
|
56
|
+
Started GET "/products/1" for 127.0.0.1 at 2018-06-20 23:14:19 -0300
|
|
286
57
|
Processing by ProductsController#show as HTML
|
|
287
58
|
Parameters: {"id"=>"1"}
|
|
288
|
-
[1m[36mProduct Load (0.
|
|
59
|
+
[1m[36mProduct Load (0.3ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
289
60
|
Rendering products/show.html.erb within layouts/application
|
|
290
|
-
[1m[36mAudited::Audit Load (0.
|
|
61
|
+
[1m[36mAudited::Audit Load (0.4ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
291
62
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
292
|
-
Rendered /
|
|
293
|
-
Rendered products/show.html.erb within layouts/application (
|
|
294
|
-
Completed 200 OK in
|
|
295
|
-
Started GET "/products/1?show_log=true" for 127.0.0.1 at
|
|
63
|
+
Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_controls.html.erb (14.7ms)
|
|
64
|
+
Rendered products/show.html.erb within layouts/application (31.7ms)
|
|
65
|
+
Completed 200 OK in 294ms (Views: 284.4ms | ActiveRecord: 0.7ms)
|
|
66
|
+
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2018-06-20 23:14:19 -0300
|
|
296
67
|
Processing by ProductsController#show as HTML
|
|
297
68
|
Parameters: {"show_log"=>"true", "id"=>"1"}
|
|
298
69
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
299
70
|
Rendering products/show.html.erb within layouts/application
|
|
300
|
-
[1m[36mAudited::Audit Load (0.
|
|
71
|
+
[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]]
|
|
301
72
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
302
|
-
[1m[36mAudited::Audit Load (0.
|
|
303
|
-
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
73
|
+
[1m[36mAudited::Audit Load (0.5ms)[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"]]
|
|
74
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
304
75
|
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
305
|
-
Rendered /
|
|
306
|
-
Rendered /
|
|
307
|
-
Rendered /
|
|
308
|
-
Rendered products/show.html.erb within layouts/application (
|
|
309
|
-
Completed 200 OK in
|
|
310
|
-
[1m[35m (
|
|
76
|
+
Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_audit_record.html.erb (12.9ms)
|
|
77
|
+
Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_audits.html.erb (28.5ms)
|
|
78
|
+
Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_controls.html.erb (42.5ms)
|
|
79
|
+
Rendered products/show.html.erb within layouts/application (43.2ms)
|
|
80
|
+
Completed 200 OK in 46ms (Views: 43.9ms | ActiveRecord: 1.1ms)
|
|
81
|
+
[1m[35m (1.5ms)[0m [1m[31mrollback transaction[0m
|
|
311
82
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
312
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
313
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
|
|
314
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
315
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
316
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:61256c8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
|
|
317
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
318
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "73f94d51-41f9-43c8-a48c-1f9fdf8a7bb5"], ["created_at", 2017-05-08 12:35:58 UTC]]
|
|
319
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
320
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:58 -0300
|
|
321
|
-
Processing by ProductsController#show as HTML
|
|
322
|
-
Parameters: {"id"=>"1"}
|
|
323
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
324
|
-
Rendering products/show.html.erb within layouts/application
|
|
325
|
-
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
326
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
327
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.9ms)
|
|
328
|
-
Rendered products/show.html.erb within layouts/application (7.2ms)
|
|
329
|
-
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms)
|
|
330
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
|
331
|
-
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
|
332
83
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
333
|
-
[1m[
|
|
84
|
+
[1m[36mUser Create (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", "2018-06-21 02:14:19.727105"], ["updated_at", "2018-06-21 02:14:19.727105"]]
|
|
334
85
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
335
86
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
336
|
-
[1m[
|
|
87
|
+
[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", "2018-06-21 02:14:19.730526"], ["updated_at", "2018-06-21 02:14:19.730526"]]
|
|
337
88
|
[1m[36mAudited::Audit Load (0.3ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
338
|
-
[1m[
|
|
89
|
+
[1m[36mAudited::Audit Create (0.7ms)[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", "3d830aea-6f89-4734-9921-93530d71afc7"], ["created_at", "2018-06-21 02:14:19.734682"]]
|
|
339
90
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
340
|
-
Started GET "/products/1" for 127.0.0.1 at
|
|
91
|
+
Started GET "/products/1" for 127.0.0.1 at 2018-06-20 23:14:19 -0300
|
|
341
92
|
Processing by ProductsController#show as HTML
|
|
342
93
|
Parameters: {"id"=>"1"}
|
|
343
94
|
[1m[36mProduct Load (0.2ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
344
95
|
Rendering products/show.html.erb within layouts/application
|
|
345
|
-
[1m[36mAudited::Audit Load (0.
|
|
346
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
347
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.6ms)
|
|
348
|
-
Rendered products/show.html.erb within layouts/application (26.6ms)
|
|
349
|
-
Completed 200 OK in 211ms (Views: 203.8ms | ActiveRecord: 0.5ms)
|
|
350
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
351
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
352
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
353
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
|
|
354
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
355
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
356
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:5ec7250,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
|
|
357
|
-
[1m[36mAudited::Audit Load (0.1ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
|
|
358
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "f6da4da1-a6c6-46e8-a08b-c45a3f626f6f"], ["created_at", 2017-05-08 12:36:01 UTC]]
|
|
359
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
360
|
-
Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
|
|
361
|
-
Processing by ProductsController#show as HTML
|
|
362
|
-
Parameters: {"id"=>"1"}
|
|
363
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
364
|
-
Rendering products/show.html.erb within layouts/application
|
|
365
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
366
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
367
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.4ms)
|
|
368
|
-
Rendered products/show.html.erb within layouts/application (6.6ms)
|
|
369
|
-
Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.3ms)
|
|
370
|
-
Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
|
|
371
|
-
Processing by ProductsController#show as HTML
|
|
372
|
-
Parameters: {"show_log"=>"true", "id"=>"1"}
|
|
373
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
374
|
-
Rendering products/show.html.erb within layouts/application
|
|
375
|
-
[1m[36mAudited::Audit Load (0.4ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
376
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
377
|
-
[1m[36mAudited::Audit Load (0.2ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC[0m [["auditable_id", 1], ["auditable_type", "Product"]]
|
|
378
|
-
[1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
379
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
380
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.7ms)
|
|
381
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (9.5ms)
|
|
382
|
-
Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (15.7ms)
|
|
383
|
-
Rendered products/show.html.erb within layouts/application (17.2ms)
|
|
384
|
-
Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.8ms)
|
|
385
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
|
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]]
|
|
96
|
+
[1m[36mAudited::Audit Load (0.5ms)[0m [1m[34mSELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ?[0m [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
|
|
401
97
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
|
402
|
-
Rendered /
|
|
403
|
-
Rendered products/show.html.erb within layouts/application (
|
|
404
|
-
Completed 200 OK in
|
|
405
|
-
|
|
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
|
|
98
|
+
Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_controls.html.erb (7.3ms)
|
|
99
|
+
Rendered products/show.html.erb within layouts/application (12.3ms)
|
|
100
|
+
Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.8ms)
|
|
101
|
+
[1m[35m (1.4ms)[0m [1m[31mrollback transaction[0m
|