rails_sortable 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/app/controllers/sortable_controller.rb +3 -2
  4. data/lib/rails_sortable/version.rb +1 -1
  5. data/spec/dummy/db/development.sqlite3 +0 -0
  6. data/spec/dummy/log/development.log +127 -0
  7. data/spec/dummy/log/test.log +904 -0
  8. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-0/-04WultUGIm_Y6DGzaQeEdWs4rqnYdR5dFslay4ECI0.cache +1 -0
  9. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-n/-nob8_x40i6OuTJnKYdu9vWfcyNR4so8ZnQFZjtzHwQ.cache +0 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0h/0hs9PsMIO89xhM0xQmVPc4tk6beqwN8vrocp0RsQgNk.cache +1 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0h/0hwBYo_o7NzxpFs41yC326gdOZ1jatKLrz9YcrzK3Fg.cache +0 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0l/0lxOLKgMUMzAFvW2sDd-e6N0cnDR_PNDv-s69MSMiAA.cache +0 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1L/1L7CqN3UdeXwKk-l8DgrgbknMYKblsmKt6WZzV_sXYc.cache +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3a/3aVsPpF82NTrOME3q-fLdN_C-dNqaKEch3UZ3KCZ-0g.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3i/3iYssjfoHe6hUT4LNcQLtG0j5Nn4FDPwoa943-RWnfE.cache +0 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/47/47ABFWVQuZVNPp2rFBDHaSI9aSmq-03nLg_LXqL7TnI.cache +1 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4S/4SNGC0N4UAfgyk5hO3K9IN4y0mzSpQBHFfBPktGeJ7M.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5H/5HTLYrN2iyEFJnUtsUif6BeIyTbdK3YgMEme5Huu0pQ.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6H/6HpFwq6-jgGkQnJR_YkHPNTACJO7ZfoYuPXytyPs_8c.cache +1 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6N/6NH2ic-dqzcSdc0aHHxKVWU9ehgqEUGh4E6ENjqLWgY.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8C/8CF9P7ktAB3fsFsbCQqooUdvfdrEANZYrHt5WbCGvJ8.cache +2 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUyuSGGWDcoD_sjnBkpxBN8F0YB84dRx1vi7dqFwAU4.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BJ/BJpyPBlW8L-v3Se-MdzObEShxbkzEUEUDLT9xKG-pG0.cache +3 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/BwXXe9MVSCahD1jLozGLD21EgQ4OD4ZIHOZLS1AK114.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DQ/DQwv2-82BJterkwfSq-aBtEakxaOc_EDwxpPiUxhBUg.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dv/Dv4SRzlAjn6avvr2cUKX8iPyUR_kOrOgjsMoo5KLYMM.cache +1 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ED/EDygO8NoxqRQ5ZbtcF0-IeGelRZaVuRITaeX2qM5HLs.cache +1 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F6/F6VBZW6wfPkig4zAn5KlNHek1ggk5LDltBmXGTEj5Zc.cache +1 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fo/Fot6B2GsoEh0JJ1SBIO_53T6e4V9kIqsBG_VbcDE6tc.cache +0 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H5/H5L4ED8So5C1e8_8_P9Y1ZmOM-qB0pnXi7PK1m6y-c0.cache +2 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFuNhzNZA5ILxIzWi2wxnZ_uEYPrAQ4OVoo0Y_92muU.cache +0 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HL/HL0wxjcBlYx71McT7MG50M7EmfnJGWgwXQ_r7ZGxHQU.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HP/HPvwKrVoAvZRbgC5TK-ykPPfN8f1wJzshJJ4hxZLNBE.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HP/HPxrSpscgpLyWgHkqHUWy4lYXTRm-ja0nASxN9rgZCY.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IN/IN56Jy3kJ8keyxPS1KQSu9csGDnhifp5kqjeRSXLmIA.cache +1 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K_/K_em1mG3ogJsSU7rBKGL8k1b-MJFzwuqGGlM00vLx_0.cache +1 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MB/MBoh4xCrQK62_tnISBIr83XENwlDhHKeQ-dAc2HljII.cache +0 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MI/MIE0xDfXVrYJnaBoxTwhVxoAt7JBJG3mcS1sLr_6QLA.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NW/NWqf7xq8uxCcCLqLyqR4P6Xdp7ptpiR-nfnIdZpLUKM.cache +0 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nn/NneUvDUNWVsB9BHgj33tVKpku1Y6wvAkex7TnTypREQ.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXQFRQZ5OA2i3YtnP1fZ96aWeUC3_IIqO4fAMdR9FsM.cache +0 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pd/PdhFAxvS-pKGfpMWUFkecwUMGbV0x_tyma4E8bhYzwk.cache +2 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qz/QzHZOVuxliEUGRc6_327ldOKYVlJc242vB480-yPT5o.cache +0 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RN/RNyGepx7EwEJB6Akv76k899nuTZGHVDIoajLLirWEVE.cache +1 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RV/RV_uxduRftEOUfJaJAjV0fyrvjA5w5BMHt1OPqHHt4g.cache +0 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Su/SusU-3Y6BEfHT81CiE_HFPr0ps6mld3LoiXPh1ms6Z4.cache +2 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UG/UGUKHaW4DiFx1aZgMUpclbzKInIDVBd5f75rfkqDRd4.cache +0 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VT/VTRh7T3RaFRYtSxU4n_l-7YBl4aUneDTFvlmCR4oZWo.cache +2 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YC/YcatZcAumaRYKvENGd3Dn1nAJs8qI1IF8hcePEMp_aU.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yd/Yd_x_gMBuDf80j0z_5Cs2uxwmXXrqlIQtE9JzCeXZz0.cache +0 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zy/Zyzx9MX-rADAndKD-RbVhnXWvxdgCkSEqwWVFxfSYj0.cache +2 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bV/bVc9ONSWy2DbnsCC-_aA6eZmvRASL4UaOIwbhV_peUw.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbm8AuIOkvpKYU6zU46aCNadGPBm4u1GuphZJO2A9Us.cache +1 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e-/e-wQ4XMgNt8aVTNM5Yc1lO5JNnfXhQpj3yi4DsSkRjY.cache +3 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eR/eRA2yEltNY1c24b_r_8KRGXWsPeKkgM-513zu1rvvWY.cache +1 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e_/e_-gryR9yq7c9wpbUaii_sRm27HJ4azewaJrWUk1aTg.cache +0 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fR/fR7lphpj83NQV2tYMU8ejAZ8IE9LVsOaLLjXr3QB0hY.cache +0 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fs/fsDJJpy7QCTq-Bv5aG5ebdN9pcv60qW1EQ7WfhYCRBU.cache +2 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ho/hoJx3gEYQ6DNhf9FIMHfjljGfN4G_4qnAKYMYN6Qafw.cache +1 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hv/hvk9E5eaUoqJzEdIZow4rM4zE47CzuQyf_voafXg9cs.cache +0 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iW/iWCZuiSs4kSvu2Q6UXzA3n-11G1VXaF_DN3cSlJzDW8.cache +1 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jJ/jJKuyOu8mocUplQ59tn0IJamTKx8m6lxDtl-yyhF4V4.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kP/kP2ttjl8vky2AvGRDnM1J9MP8CeHGZy6aZOF8vuWTtA.cache +1 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kf/kfoHkTHobIvlHhkhjVlJszRpjNfiuX8EiZUoqO0Lp_s.cache +1 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mf/mfjY2c6bfPbp68OYz09JiMXz0kGnYgEpFqg1dtC6dsk.cache +1 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nI/nIMpNjdzGjeBulaQ1cilV6BJ5FdkI2tTke4I1bC2lAQ.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ns/nsGIeC1c9d_mvpq5Cmsvo_DlkpudHcgQSuQ0pBzEBi4.cache +1 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o4/o4Y9F2XU_uVXmdHbLHiTSqN0NE0piayqn2EwMN4yDgQ.cache +0 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o7/o7Zh_yhCQpar6MtP4sZM_zCWMs-UU9QbQdme-JAgbpU.cache +1 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/og/og9gVryCW4y-Lxl3e09IMZDil-JGsGfK88u9Iie6QXE.cache +0 -0
  72. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pJ/PJGd157caHlpZuzzP2ldBKP2U4MuTSQWThLPyn7wGnQ.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pJ/pJQ9RK_DjVqB5kRfiMUr-hV8gvqMEEaXNxFv05k7TAE.cache +1 -0
  74. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q1/q1TRPyM31o2MsmXcVvo9BHsqWClK5j0EQQ01yDeAzew.cache +0 -0
  75. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +0 -0
  76. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qY/qY2ZmJWxK-kVp8WVOlKdoFGOyKbUJlaTfK6Sm000kco.cache +1 -0
  77. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWpRXEIJzFMcsSUwp-Vu5QLS3vWbos65wsNMgWi-9k0.cache +0 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ue/ueW0ikEyCsED9Kl4ZlSCOP6vWof7n34Sid8DGfeIOiQ.cache +0 -0
  79. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v9/v9y20Av8j8_DtAf0cZlgMrqwJ5nGXCuD15YoxYsqFLs.cache +3 -0
  80. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vA/VA9A8A2fXy-GAXmbdiYZMQM6bums7Sg1NJKHz16QQys.cache +2 -0
  81. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +0 -0
  82. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xP/xP6CXq8ijIC31bX-551FhfNHTjzVi19Y1HM4P-l05gk.cache +2 -0
  83. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xm/xmzEYT9vU2zilqOPOVas6v0laZBUghwJbMZPkcmseT0.cache +0 -0
  84. metadata +242 -112
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7578e8bfeddaab6a6374aae83c9020bda05f46524ab28c5da6ec6ff4255dcf5
4
- data.tar.gz: 833d21612d9e231c66f8ae67c9c31e3e277f7ff1df11e73b18c01327ceab53b5
3
+ metadata.gz: 35da2203e68df3155c4247c6d2c559dcad1afe71625b7c208140b07767a728aa
4
+ data.tar.gz: 8203be170dd5a5d0530dbf2d35f155de0e0edd6f3e1d4f39b1462c83fb7dc9d8
5
5
  SHA512:
6
- metadata.gz: 8f0266657c556f5b63df0d3357bdb4a3bc823aa9e91ed2dc66baf48bbbb718266f10c0bf839610e06201d6970e75fb9df2de82252b113ff9f8da70d1f6ff54bc
7
- data.tar.gz: 9ad8ad0737b10dbafd9c94fbe4797a385bc55bdb00008b37af7b99553895e66a495e0f24f4c009ad66744ddb0c2534d36495668adcc0c235b8e1d79e00455570
6
+ metadata.gz: cf9ef9532ac87ed135803bbbfbb30a025874ae6d5c55986aad767be4ce2d05bafc8ea5dedfd6f04da969797aae7b0db1e30a1bf7929eb47a201bfb76748b78c6
7
+ data.tar.gz: 674c3b4b74cc7f4aae0210336ed9323d5e4684c1791d41999b8ba65c3a7e5aa5b21ba3e14b40045bfd280a8cc4abc24a73057864b8cde23429bf4d378225874c
data/README.md CHANGED
@@ -74,6 +74,11 @@ and the listing view (typically - index.html.erb) as
74
74
  <% end %>
75
75
  </tbody>
76
76
  </table>
77
+
78
+ <!-- or just invoke model#sortable_id to get the id for sotable -->
79
+ ...
80
+ <% @items.each do |item| %>
81
+ <tr id="<%= item.sortable_id %>">
77
82
  ...
78
83
  ```
79
84
 
@@ -5,11 +5,12 @@ class SortableController < ApplicationController
5
5
  def reorder
6
6
  klass, ids = parse_params
7
7
  attr = klass.sort_attribute
8
- models = klass.order(attr).to_a
8
+ id_to_model = klass.find(ids).index_by(&:id)
9
9
  ids.each_with_index do |id, new_sort|
10
- model = models.find {|m| m.id == id }
10
+ model = id_to_model[id]
11
11
  model.update_sort!(new_sort) if model.read_attribute(attr) != new_sort
12
12
  end
13
+
13
14
  head :ok
14
15
  end
15
16
 
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
Binary file
@@ -223,3 +223,130 @@ Processing by ItemsController#index as HTML
223
223
  Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.5ms)
224
224
 
225
225
 
226
+ Started GET "/" for ::1 at 2018-02-16 16:25:09 +0900
227
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
228
+ Processing by Rails::WelcomeController#index as HTML
229
+ Rendering /Users/madmax/Programs/itmammoth/rails_sortable/vendor/bundle/ruby/2.5.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb
230
+ Rendered /Users/madmax/Programs/itmammoth/rails_sortable/vendor/bundle/ruby/2.5.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (2.9ms)
231
+ Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms)
232
+
233
+
234
+ Started GET "/items" for ::1 at 2018-02-16 16:25:13 +0900
235
+ Processing by ItemsController#index as HTML
236
+ Rendering items/index.html.erb within layouts/application
237
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
238
+ Rendered items/index.html.erb within layouts/application (8.1ms)
239
+ Completed 200 OK in 357ms (Views: 351.4ms | ActiveRecord: 0.6ms)
240
+
241
+
242
+ Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for ::1 at 2018-02-16 16:25:13 +0900
243
+ Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for ::1 at 2018-02-16 16:25:13 +0900
244
+ Started GET "/assets/jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
245
+ Started GET "/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
246
+ Started GET "/assets/jquery-ui/version.self-c8e3d1203da26ea7efdf83c1eabb3f0ba55cb68e463f5ccf0d77bd15ce6a8e61.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
247
+ Started GET "/assets/jquery-ui/ie.self-163eb039dcb1e0c3471b7d91386eabb8753da6906e84824c019f9ff56bdb83a6.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
248
+ Started GET "/assets/jquery-ui/widget.self-fca20bcec06d192f97cffa6e734e24360e227237b8ae7d7e7e60754df7d5444f.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
249
+ Started GET "/assets/jquery-ui/widgets/mouse.self-f0790a202dcf54fab051e71b042335d5346f9cceb0f645223c1dab93f349a04b.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
250
+ Started GET "/assets/jquery-ui/data.self-2067c82e6fe39a9cba5623206a5dc28d5c60d26b95cd100855b78cacf72865b8.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
251
+ Started GET "/assets/jquery-ui/scroll-parent.self-38e26a71a450a29fb63425e8f589a7046862f927eb0a1dbf6a6c44da05196d2e.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
252
+ Started GET "/assets/jquery-ui/widgets/sortable.self-6e5e1f07a29b5a89ec1d359363d2800904e3ae548a38ab2f8eded36746d1adbe.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
253
+ Started GET "/assets/plugin.self-84bdbacb1efd558ee0dac9e9a39c3f2acc7a75ef4b01112739eec325ddfa2429.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
254
+ Started GET "/assets/rails_sortable.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
255
+ Started GET "/assets/items.self-3f5ee897a5a4a74ee2d01575104d7e38daf09a55678ea0eec89cd57028db5471.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
256
+ Started GET "/assets/sequenced_items.self-3f5ee897a5a4a74ee2d01575104d7e38daf09a55678ea0eec89cd57028db5471.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
257
+ Started GET "/assets/application.self-120f3cf1cb67bea53c4a2a57336b34ca04b04b55a55c38cf76ce20a147e5eff9.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
258
+ Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:19 +0900
259
+ Processing by SortableController#reorder as */*
260
+ Parameters: {"Item"=>["1", "7", "4", "2", "3", "5", "6", "8", "9", "10"]}
261
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 7, 4, 2, 3, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC
262
+  (0.0ms) begin transaction
263
+ SQL (0.5ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 07:25:19.400928"], ["id", 1]]
264
+  (1.8ms) commit transaction
265
+  (0.0ms) begin transaction
266
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 07:25:19.404795"], ["id", 7]]
267
+  (1.0ms) commit transaction
268
+  (0.1ms) begin transaction
269
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-02-16 07:25:19.407208"], ["id", 4]]
270
+  (1.2ms) commit transaction
271
+ Completed 200 OK in 11ms (ActiveRecord: 5.4ms)
272
+
273
+
274
+ Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:22 +0900
275
+ Processing by SortableController#reorder as */*
276
+ Parameters: {"Item"=>["1", "2", "7", "4", "3", "5", "6", "8", "9", "10"]}
277
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 7, 4, 3, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC
278
+  (0.0ms) begin transaction
279
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 07:25:22.215357"], ["id", 2]]
280
+  (0.7ms) commit transaction
281
+  (0.1ms) begin transaction
282
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-02-16 07:25:22.217623"], ["id", 7]]
283
+  (0.6ms) commit transaction
284
+  (0.0ms) begin transaction
285
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-02-16 07:25:22.219932"], ["id", 4]]
286
+  (1.0ms) commit transaction
287
+ Completed 200 OK in 8ms (ActiveRecord: 3.6ms)
288
+
289
+
290
+ Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:24 +0900
291
+ Processing by SortableController#reorder as */*
292
+ Parameters: {"Item"=>["1", "2", "3", "7", "4", "5", "6", "8", "9", "10"]}
293
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 7, 4, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC
294
+  (0.0ms) begin transaction
295
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-02-16 07:25:24.042044"], ["id", 3]]
296
+  (2.3ms) commit transaction
297
+  (0.1ms) begin transaction
298
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-02-16 07:25:24.046020"], ["id", 7]]
299
+  (0.9ms) commit transaction
300
+  (0.1ms) begin transaction
301
+ SQL (0.5ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-02-16 07:25:24.048729"], ["id", 4]]
302
+  (0.8ms) commit transaction
303
+ Completed 200 OK in 11ms (ActiveRecord: 5.5ms)
304
+
305
+
306
+ Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:25 +0900
307
+ Processing by SortableController#reorder as */*
308
+ Parameters: {"Item"=>["1", "2", "3", "4", "7", "5", "6", "8", "9", "10"]}
309
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 4, 7, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC
310
+  (0.0ms) begin transaction
311
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-02-16 07:25:25.222388"], ["id", 4]]
312
+  (2.1ms) commit transaction
313
+  (0.1ms) begin transaction
314
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-02-16 07:25:25.225974"], ["id", 7]]
315
+  (0.8ms) commit transaction
316
+ Completed 200 OK in 7ms (ActiveRecord: 3.7ms)
317
+
318
+
319
+ Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:26 +0900
320
+ Processing by SortableController#reorder as */*
321
+ Parameters: {"Item"=>["1", "2", "3", "4", "5", "7", "6", "8", "9", "10"]}
322
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 4, 5, 7, 6, 8, 9, 10) ORDER BY "items"."sort" ASC
323
+  (0.0ms) begin transaction
324
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-02-16 07:25:26.345063"], ["id", 5]]
325
+  (2.2ms) commit transaction
326
+  (0.1ms) begin transaction
327
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-02-16 07:25:26.348864"], ["id", 7]]
328
+  (0.7ms) commit transaction
329
+ Completed 200 OK in 8ms (ActiveRecord: 3.8ms)
330
+
331
+
332
+ Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:27 +0900
333
+ Processing by SortableController#reorder as */*
334
+ Parameters: {"Item"=>["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]}
335
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) ORDER BY "items"."sort" ASC
336
+  (0.1ms) begin transaction
337
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-02-16 07:25:27.472665"], ["id", 6]]
338
+  (2.4ms) commit transaction
339
+  (0.1ms) begin transaction
340
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-02-16 07:25:27.476698"], ["id", 7]]
341
+  (1.1ms) commit transaction
342
+ Completed 200 OK in 9ms (ActiveRecord: 4.4ms)
343
+
344
+
345
+ Started GET "/items" for ::1 at 2018-02-16 16:25:30 +0900
346
+ Processing by ItemsController#index as HTML
347
+ Rendering items/index.html.erb within layouts/application
348
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
349
+ Rendered items/index.html.erb within layouts/application (2.8ms)
350
+ Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.2ms)
351
+
352
+
@@ -2065,3 +2065,907 @@ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
2065
2065
  SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2017-12-16 11:17:48.904231"], ["updated_at", "2017-12-16 11:17:48.904231"]]
2066
2066
   (0.0ms) RELEASE SAVEPOINT active_record_1
2067
2067
   (0.3ms) rollback transaction
2068
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2069
+  (0.0ms) begin transaction
2070
+  (0.0ms) rollback transaction
2071
+  (0.0ms) begin transaction
2072
+  (0.0ms) SAVEPOINT active_record_1
2073
+  (0.7ms) SELECT MAX("items"."sort") FROM "items"
2074
+ SQL (0.9ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.607627"], ["updated_at", "2018-02-16 06:58:04.607627"], ["sort", 1]]
2075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
+  (0.5ms) rollback transaction
2077
+  (0.0ms) begin transaction
2078
+  (0.0ms) SAVEPOINT active_record_1
2079
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2080
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.613656"], ["updated_at", "2018-02-16 06:58:04.613656"], ["sort", 1]]
2081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2082
+  (0.0ms) SAVEPOINT active_record_1
2083
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2084
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.615507"], ["updated_at", "2018-02-16 06:58:04.615507"], ["sort", 2]]
2085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2086
+  (0.0ms) SAVEPOINT active_record_1
2087
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2088
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.617094"], ["updated_at", "2018-02-16 06:58:04.617094"], ["sort", 3]]
2089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2090
+ Processing by SortableController#reorder as HTML
2091
+ Parameters: {"Item"=>["1", "3", "2"]}
2092
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2093
+  (0.0ms) SAVEPOINT active_record_1
2094
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 06:58:04.623993"], ["id", 1]]
2095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2096
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2097
+  (0.0ms) SAVEPOINT active_record_1
2098
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 06:58:04.625682"], ["id", 3]]
2099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2100
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2101
+ Completed 200 OK in 7ms (ActiveRecord: 0.5ms)
2102
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2103
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2104
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2105
+  (0.4ms) rollback transaction
2106
+  (0.0ms) begin transaction
2107
+  (0.0ms) SAVEPOINT active_record_1
2108
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:58:04.630615"], ["updated_at", "2018-02-16 06:58:04.630615"]]
2109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2110
+  (0.1ms) SAVEPOINT active_record_1
2111
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:04.632022"], ["updated_at", "2018-02-16 06:58:04.632022"]]
2112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2113
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2114
+  (0.6ms) rollback transaction
2115
+  (0.1ms) begin transaction
2116
+  (0.0ms) SAVEPOINT active_record_1
2117
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2118
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.637599"], ["updated_at", "2018-02-16 06:58:04.637599"], ["sort", 1]]
2119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2120
+  (0.4ms) rollback transaction
2121
+  (0.0ms) begin transaction
2122
+  (0.0ms) SAVEPOINT active_record_1
2123
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:04.640359"], ["updated_at", "2018-02-16 06:58:04.640359"]]
2124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2125
+  (0.4ms) rollback transaction
2126
+  (0.0ms) begin transaction
2127
+  (0.0ms) SAVEPOINT active_record_1
2128
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:04.642807"], ["updated_at", "2018-02-16 06:58:04.642807"]]
2129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2130
+  (0.0ms) SAVEPOINT active_record_1
2131
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2132
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.643791"], ["updated_at", "2018-02-16 06:58:04.643791"], ["sort", 1001]]
2133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2134
+  (0.4ms) rollback transaction
2135
+  (0.0ms) begin transaction
2136
+  (0.0ms) SAVEPOINT active_record_1
2137
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2138
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.646234"], ["updated_at", "2018-02-16 06:58:04.646234"], ["sort", 1]]
2139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2140
+  (0.0ms) SAVEPOINT active_record_1
2141
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:58:04.649590"], ["id", 1]]
2142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2143
+  (0.5ms) rollback transaction
2144
+  (0.1ms) begin transaction
2145
+  (0.0ms) SAVEPOINT active_record_1
2146
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2147
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.653054"], ["updated_at", "2018-02-16 06:58:04.653054"], ["sort", 1]]
2148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2149
+  (0.0ms) SAVEPOINT active_record_1
2150
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2152
+  (0.4ms) rollback transaction
2153
+  (0.0ms) begin transaction
2154
+  (0.0ms) SAVEPOINT active_record_1
2155
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2156
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.660563"], ["updated_at", "2018-02-16 06:58:04.660563"], ["sequence", 1]]
2157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2158
+  (0.3ms) rollback transaction
2159
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2160
+  (0.1ms) begin transaction
2161
+  (0.0ms) SAVEPOINT active_record_1
2162
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:06.267885"], ["updated_at", "2018-02-16 06:58:06.267885"]]
2163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2164
+  (0.0ms) SAVEPOINT active_record_1
2165
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2166
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-02-16 06:58:06.269322"], ["updated_at", "2018-02-16 06:58:06.269322"]]
2167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2168
+  (1.0ms) rollback transaction
2169
+  (0.0ms) begin transaction
2170
+  (0.0ms) SAVEPOINT active_record_1
2171
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:06.273343"], ["updated_at", "2018-02-16 06:58:06.273343"]]
2172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2173
+  (0.4ms) rollback transaction
2174
+  (0.0ms) begin transaction
2175
+  (0.0ms) SAVEPOINT active_record_1
2176
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2177
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:06.275684"], ["updated_at", "2018-02-16 06:58:06.275684"]]
2178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2179
+  (0.4ms) rollback transaction
2180
+  (0.0ms) begin transaction
2181
+  (0.0ms) SAVEPOINT active_record_1
2182
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:58:06.278756"], ["updated_at", "2018-02-16 06:58:06.278756"]]
2183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2184
+  (0.1ms) SAVEPOINT active_record_1
2185
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:06.280118"], ["updated_at", "2018-02-16 06:58:06.280118"]]
2186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2187
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2188
+  (0.4ms) rollback transaction
2189
+  (0.0ms) begin transaction
2190
+  (0.0ms) SAVEPOINT active_record_1
2191
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2192
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:06.286050"], ["updated_at", "2018-02-16 06:58:06.286050"]]
2193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2194
+  (0.1ms) SAVEPOINT active_record_1
2195
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:58:06.288871"], ["id", 1]]
2196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2197
+  (0.4ms) rollback transaction
2198
+  (0.0ms) begin transaction
2199
+  (0.0ms) SAVEPOINT active_record_1
2200
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2201
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:06.291157"], ["updated_at", "2018-02-16 06:58:06.291157"]]
2202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
+  (0.0ms) SAVEPOINT active_record_1
2204
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2206
+  (0.4ms) rollback transaction
2207
+  (0.0ms) begin transaction
2208
+  (0.0ms) SAVEPOINT active_record_1
2209
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2210
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-02-16 06:58:06.298953"], ["updated_at", "2018-02-16 06:58:06.298953"]]
2211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2212
+  (0.4ms) rollback transaction
2213
+  (0.0ms) begin transaction
2214
+  (0.1ms) SAVEPOINT active_record_1
2215
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2216
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:06.305355"], ["updated_at", "2018-02-16 06:58:06.305355"]]
2217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2218
+  (0.0ms) SAVEPOINT active_record_1
2219
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2220
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-02-16 06:58:06.307500"], ["updated_at", "2018-02-16 06:58:06.307500"]]
2221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2222
+  (0.0ms) SAVEPOINT active_record_1
2223
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2224
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-02-16 06:58:06.308698"], ["updated_at", "2018-02-16 06:58:06.308698"]]
2225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2226
+ Processing by SortableController#reorder as HTML
2227
+ Parameters: {"Item"=>["1", "3", "2"]}
2228
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2229
+  (0.0ms) SAVEPOINT active_record_1
2230
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 0], ["id", 1]]
2231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2232
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2233
+  (0.1ms) SAVEPOINT active_record_1
2234
+ SQL (0.0ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1], ["id", 3]]
2235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2236
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2237
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
2238
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2239
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2240
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2241
+  (0.4ms) rollback transaction
2242
+  (0.0ms) begin transaction
2243
+  (0.0ms) SAVEPOINT active_record_1
2244
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2245
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:06.320752"], ["updated_at", "2018-02-16 06:58:06.320752"]]
2246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2247
+  (0.6ms) rollback transaction
2248
+  (0.0ms) begin transaction
2249
+  (0.0ms) rollback transaction
2250
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2251
+  (0.1ms) begin transaction
2252
+  (0.1ms) SAVEPOINT active_record_1
2253
+  (0.6ms) SELECT MAX("items"."sort") FROM "items"
2254
+ SQL (0.7ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:07.967471"], ["updated_at", "2018-02-16 06:58:07.967471"]]
2255
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2256
+  (0.1ms) SAVEPOINT active_record_1
2257
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2258
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-02-16 06:58:07.975593"], ["updated_at", "2018-02-16 06:58:07.975593"]]
2259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2260
+  (0.0ms) SAVEPOINT active_record_1
2261
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2262
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-02-16 06:58:07.978501"], ["updated_at", "2018-02-16 06:58:07.978501"]]
2263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2264
+ Processing by SortableController#reorder as HTML
2265
+ Parameters: {"Item"=>["1", "3", "2"]}
2266
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2267
+  (0.1ms) SAVEPOINT active_record_1
2268
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 06:58:07.988915"], ["id", 1]]
2269
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2270
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2271
+  (0.0ms) SAVEPOINT active_record_1
2272
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 06:58:07.992269"], ["id", 3]]
2273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2274
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2275
+ Completed 200 OK in 7ms (ActiveRecord: 0.9ms)
2276
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2277
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2278
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2279
+  (1.6ms) rollback transaction
2280
+  (0.1ms) begin transaction
2281
+  (0.1ms) SAVEPOINT active_record_1
2282
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2283
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:08.000373"], ["updated_at", "2018-02-16 06:58:08.000373"]]
2284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2285
+  (0.5ms) rollback transaction
2286
+  (0.1ms) begin transaction
2287
+  (0.1ms) rollback transaction
2288
+  (0.1ms) begin transaction
2289
+  (0.1ms) SAVEPOINT active_record_1
2290
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2291
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:08.013274"], ["updated_at", "2018-02-16 06:58:08.013274"]]
2292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2293
+  (0.4ms) rollback transaction
2294
+  (0.1ms) begin transaction
2295
+  (0.1ms) SAVEPOINT active_record_1
2296
+ SQL (1.0ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:08.017061"], ["updated_at", "2018-02-16 06:58:08.017061"]]
2297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2298
+  (0.5ms) rollback transaction
2299
+  (0.1ms) begin transaction
2300
+  (0.1ms) SAVEPOINT active_record_1
2301
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:08.022621"], ["updated_at", "2018-02-16 06:58:08.022621"]]
2302
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2303
+  (0.0ms) SAVEPOINT active_record_1
2304
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2305
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-02-16 06:58:08.025099"], ["updated_at", "2018-02-16 06:58:08.025099"]]
2306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2307
+  (0.4ms) rollback transaction
2308
+  (0.0ms) begin transaction
2309
+  (0.0ms) SAVEPOINT active_record_1
2310
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2311
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:08.027869"], ["updated_at", "2018-02-16 06:58:08.027869"]]
2312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2313
+  (0.1ms) SAVEPOINT active_record_1
2314
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:58:08.030780"], ["id", 1]]
2315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2316
+  (0.4ms) rollback transaction
2317
+  (0.0ms) begin transaction
2318
+  (0.0ms) SAVEPOINT active_record_1
2319
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2320
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:08.032769"], ["updated_at", "2018-02-16 06:58:08.032769"]]
2321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2322
+  (0.0ms) SAVEPOINT active_record_1
2323
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2325
+  (0.4ms) rollback transaction
2326
+  (0.1ms) begin transaction
2327
+  (0.1ms) SAVEPOINT active_record_1
2328
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2329
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-02-16 06:58:08.044948"], ["updated_at", "2018-02-16 06:58:08.044948"]]
2330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2331
+  (0.4ms) rollback transaction
2332
+  (0.0ms) begin transaction
2333
+  (0.0ms) SAVEPOINT active_record_1
2334
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:58:08.047909"], ["updated_at", "2018-02-16 06:58:08.047909"]]
2335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2336
+  (0.0ms) SAVEPOINT active_record_1
2337
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:58:08.049339"], ["updated_at", "2018-02-16 06:58:08.049339"]]
2338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2339
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2340
+  (0.9ms) rollback transaction
2341
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2342
+  (0.0ms) begin transaction
2343
+  (0.0ms) rollback transaction
2344
+  (0.0ms) begin transaction
2345
+  (0.0ms) SAVEPOINT active_record_1
2346
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2347
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.349268"], ["updated_at", "2018-02-16 06:59:06.349268"], ["sort", 1]]
2348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2349
+  (1.8ms) rollback transaction
2350
+  (0.0ms) begin transaction
2351
+  (0.0ms) SAVEPOINT active_record_1
2352
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2353
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.354933"], ["updated_at", "2018-02-16 06:59:06.354933"], ["sort", 1]]
2354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2355
+  (0.0ms) SAVEPOINT active_record_1
2356
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2357
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.356443"], ["updated_at", "2018-02-16 06:59:06.356443"], ["sort", 2]]
2358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.0ms) SAVEPOINT active_record_1
2360
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2361
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.357958"], ["updated_at", "2018-02-16 06:59:06.357958"], ["sort", 3]]
2362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2363
+ Processing by SortableController#reorder as HTML
2364
+ Parameters: {"Item"=>["1", "3", "2"]}
2365
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC
2366
+  (0.0ms) SAVEPOINT active_record_1
2367
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 06:59:06.364575"], ["id", 1]]
2368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2369
+  (0.0ms) SAVEPOINT active_record_1
2370
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 06:59:06.365555"], ["id", 2]]
2371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2372
+  (0.0ms) SAVEPOINT active_record_1
2373
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-02-16 06:59:06.366137"], ["id", 3]]
2374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2375
+ Completed 200 OK in 6ms (ActiveRecord: 0.4ms)
2376
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2377
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2378
+  (0.8ms) rollback transaction
2379
+  (0.0ms) begin transaction
2380
+  (0.0ms) SAVEPOINT active_record_1
2381
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:06.386358"], ["updated_at", "2018-02-16 06:59:06.386358"]]
2382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2383
+  (0.4ms) rollback transaction
2384
+  (0.0ms) begin transaction
2385
+  (0.0ms) SAVEPOINT active_record_1
2386
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:06.388745"], ["updated_at", "2018-02-16 06:59:06.388745"]]
2387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2388
+  (0.0ms) SAVEPOINT active_record_1
2389
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2390
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.389654"], ["updated_at", "2018-02-16 06:59:06.389654"], ["sort", 1001]]
2391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2392
+  (0.4ms) rollback transaction
2393
+  (0.1ms) begin transaction
2394
+  (0.0ms) SAVEPOINT active_record_1
2395
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2396
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.391808"], ["updated_at", "2018-02-16 06:59:06.391808"], ["sort", 1]]
2397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2398
+  (0.4ms) rollback transaction
2399
+  (0.0ms) begin transaction
2400
+  (0.0ms) SAVEPOINT active_record_1
2401
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:59:06.394905"], ["updated_at", "2018-02-16 06:59:06.394905"]]
2402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2403
+  (0.0ms) SAVEPOINT active_record_1
2404
+ SQL (0.0ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:06.396085"], ["updated_at", "2018-02-16 06:59:06.396085"]]
2405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2406
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2407
+  (0.4ms) rollback transaction
2408
+  (0.1ms) begin transaction
2409
+  (0.1ms) SAVEPOINT active_record_1
2410
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2411
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.405291"], ["updated_at", "2018-02-16 06:59:06.405291"], ["sequence", 1]]
2412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2413
+  (0.4ms) rollback transaction
2414
+  (0.1ms) begin transaction
2415
+  (0.0ms) SAVEPOINT active_record_1
2416
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2417
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.408820"], ["updated_at", "2018-02-16 06:59:06.408820"], ["sort", 1]]
2418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2419
+  (0.0ms) SAVEPOINT active_record_1
2420
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2422
+  (0.6ms) rollback transaction
2423
+  (0.1ms) begin transaction
2424
+  (0.0ms) SAVEPOINT active_record_1
2425
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2426
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.415089"], ["updated_at", "2018-02-16 06:59:06.415089"], ["sort", 1]]
2427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2428
+  (0.0ms) SAVEPOINT active_record_1
2429
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:59:06.417031"], ["id", 1]]
2430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2431
+  (0.4ms) rollback transaction
2432
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2433
+  (0.0ms) begin transaction
2434
+  (0.0ms) SAVEPOINT active_record_1
2435
+ SQL (0.9ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:36.668137"], ["updated_at", "2018-02-16 06:59:36.668137"]]
2436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2437
+  (0.1ms) SAVEPOINT active_record_1
2438
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2439
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.670573"], ["updated_at", "2018-02-16 06:59:36.670573"], ["sort", 1001]]
2440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2441
+  (1.8ms) rollback transaction
2442
+  (0.1ms) begin transaction
2443
+  (0.0ms) SAVEPOINT active_record_1
2444
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:36.676781"], ["updated_at", "2018-02-16 06:59:36.676781"]]
2445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2446
+  (0.5ms) rollback transaction
2447
+  (0.0ms) begin transaction
2448
+  (0.0ms) SAVEPOINT active_record_1
2449
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2450
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.684141"], ["updated_at", "2018-02-16 06:59:36.684141"], ["sequence", 1]]
2451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2452
+  (0.5ms) rollback transaction
2453
+  (0.1ms) begin transaction
2454
+  (0.0ms) SAVEPOINT active_record_1
2455
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2456
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.688283"], ["updated_at", "2018-02-16 06:59:36.688283"], ["sort", 1]]
2457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2458
+  (0.0ms) SAVEPOINT active_record_1
2459
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2461
+  (0.4ms) rollback transaction
2462
+  (0.0ms) begin transaction
2463
+  (0.0ms) SAVEPOINT active_record_1
2464
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2465
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.696329"], ["updated_at", "2018-02-16 06:59:36.696329"], ["sort", 1]]
2466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2467
+  (0.0ms) SAVEPOINT active_record_1
2468
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:59:36.697752"], ["id", 1]]
2469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2470
+  (0.4ms) rollback transaction
2471
+  (0.0ms) begin transaction
2472
+  (0.0ms) SAVEPOINT active_record_1
2473
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2474
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.699551"], ["updated_at", "2018-02-16 06:59:36.699551"], ["sort", 1]]
2475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2476
+  (0.3ms) rollback transaction
2477
+  (0.1ms) begin transaction
2478
+  (0.0ms) SAVEPOINT active_record_1
2479
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:59:36.702863"], ["updated_at", "2018-02-16 06:59:36.702863"]]
2480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2481
+  (0.0ms) SAVEPOINT active_record_1
2482
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:36.704465"], ["updated_at", "2018-02-16 06:59:36.704465"]]
2483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2484
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2485
+  (0.4ms) rollback transaction
2486
+  (0.0ms) begin transaction
2487
+  (0.1ms) rollback transaction
2488
+  (0.0ms) begin transaction
2489
+  (0.0ms) SAVEPOINT active_record_1
2490
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2491
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.716157"], ["updated_at", "2018-02-16 06:59:36.716157"], ["sort", 1]]
2492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2493
+  (0.5ms) rollback transaction
2494
+  (0.1ms) begin transaction
2495
+  (0.1ms) SAVEPOINT active_record_1
2496
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2497
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.721299"], ["updated_at", "2018-02-16 06:59:36.721299"], ["sort", 1]]
2498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2499
+  (0.0ms) SAVEPOINT active_record_1
2500
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2501
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.723079"], ["updated_at", "2018-02-16 06:59:36.723079"], ["sort", 2]]
2502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2503
+  (0.0ms) SAVEPOINT active_record_1
2504
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2505
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.724252"], ["updated_at", "2018-02-16 06:59:36.724252"], ["sort", 3]]
2506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2507
+ Processing by SortableController#reorder as HTML
2508
+ Parameters: {"Item"=>["1", "3", "2"]}
2509
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2510
+  (0.0ms) SAVEPOINT active_record_1
2511
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 06:59:36.729327"], ["id", 1]]
2512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2513
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2514
+  (0.0ms) SAVEPOINT active_record_1
2515
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 06:59:36.730523"], ["id", 3]]
2516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2517
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2518
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
2519
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2520
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2521
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2522
+  (0.4ms) rollback transaction
2523
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2524
+  (0.0ms) begin transaction
2525
+  (0.0ms) rollback transaction
2526
+  (0.0ms) begin transaction
2527
+  (0.0ms) SAVEPOINT active_record_1
2528
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2529
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:38.450654"], ["updated_at", "2018-02-16 06:59:38.450654"]]
2530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2531
+  (1.7ms) rollback transaction
2532
+  (0.0ms) begin transaction
2533
+  (0.0ms) SAVEPOINT active_record_1
2534
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2535
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:38.456098"], ["updated_at", "2018-02-16 06:59:38.456098"]]
2536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:59:38.459129"], ["id", 1]]
2539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2540
+  (0.5ms) rollback transaction
2541
+  (0.0ms) begin transaction
2542
+  (0.0ms) SAVEPOINT active_record_1
2543
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2544
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:38.462103"], ["updated_at", "2018-02-16 06:59:38.462103"]]
2545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2546
+  (0.0ms) SAVEPOINT active_record_1
2547
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2549
+  (0.4ms) rollback transaction
2550
+  (0.1ms) begin transaction
2551
+  (0.1ms) SAVEPOINT active_record_1
2552
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2553
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-02-16 06:59:38.472254"], ["updated_at", "2018-02-16 06:59:38.472254"]]
2554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2555
+  (0.4ms) rollback transaction
2556
+  (0.0ms) begin transaction
2557
+  (0.1ms) SAVEPOINT active_record_1
2558
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:59:38.475972"], ["updated_at", "2018-02-16 06:59:38.475972"]]
2559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2560
+  (0.0ms) SAVEPOINT active_record_1
2561
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:38.477440"], ["updated_at", "2018-02-16 06:59:38.477440"]]
2562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2563
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2564
+  (0.4ms) rollback transaction
2565
+  (0.0ms) begin transaction
2566
+  (0.0ms) SAVEPOINT active_record_1
2567
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:38.482107"], ["updated_at", "2018-02-16 06:59:38.482107"]]
2568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2569
+  (0.0ms) SAVEPOINT active_record_1
2570
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2571
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-02-16 06:59:38.483069"], ["updated_at", "2018-02-16 06:59:38.483069"]]
2572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.4ms) rollback transaction
2574
+  (0.0ms) begin transaction
2575
+  (0.1ms) SAVEPOINT active_record_1
2576
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:38.485764"], ["updated_at", "2018-02-16 06:59:38.485764"]]
2577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2578
+  (0.6ms) rollback transaction
2579
+  (0.0ms) begin transaction
2580
+  (0.1ms) SAVEPOINT active_record_1
2581
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2582
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:38.489225"], ["updated_at", "2018-02-16 06:59:38.489225"]]
2583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2584
+  (0.4ms) rollback transaction
2585
+  (0.0ms) begin transaction
2586
+  (0.1ms) SAVEPOINT active_record_1
2587
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2588
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:38.493325"], ["updated_at", "2018-02-16 06:59:38.493325"]]
2589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2590
+  (0.0ms) SAVEPOINT active_record_1
2591
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2592
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-02-16 06:59:38.495200"], ["updated_at", "2018-02-16 06:59:38.495200"]]
2593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2594
+  (0.0ms) SAVEPOINT active_record_1
2595
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2596
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-02-16 06:59:38.496321"], ["updated_at", "2018-02-16 06:59:38.496321"]]
2597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2598
+ Processing by SortableController#reorder as HTML
2599
+ Parameters: {"Item"=>["1", "3", "2"]}
2600
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2601
+  (0.1ms) SAVEPOINT active_record_1
2602
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 0], ["id", 1]]
2603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2604
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2605
+  (0.1ms) SAVEPOINT active_record_1
2606
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1], ["id", 3]]
2607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2608
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2609
+ Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
2610
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2611
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2612
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2613
+  (0.4ms) rollback transaction
2614
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2615
+  (0.0ms) begin transaction
2616
+  (0.0ms) rollback transaction
2617
+  (0.0ms) begin transaction
2618
+  (0.1ms) SAVEPOINT active_record_1
2619
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2620
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:40.117368"], ["updated_at", "2018-02-16 06:59:40.117368"]]
2621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2622
+  (0.4ms) rollback transaction
2623
+  (0.1ms) begin transaction
2624
+  (0.1ms) SAVEPOINT active_record_1
2625
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:59:40.121960"], ["updated_at", "2018-02-16 06:59:40.121960"]]
2626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2627
+  (0.0ms) SAVEPOINT active_record_1
2628
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:40.123656"], ["updated_at", "2018-02-16 06:59:40.123656"]]
2629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2630
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2631
+  (0.4ms) rollback transaction
2632
+  (0.0ms) begin transaction
2633
+  (0.1ms) SAVEPOINT active_record_1
2634
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:40.131270"], ["updated_at", "2018-02-16 06:59:40.131270"]]
2635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2636
+  (0.4ms) rollback transaction
2637
+  (0.0ms) begin transaction
2638
+  (0.1ms) SAVEPOINT active_record_1
2639
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:40.134463"], ["updated_at", "2018-02-16 06:59:40.134463"]]
2640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2641
+  (0.1ms) SAVEPOINT active_record_1
2642
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2643
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-02-16 06:59:40.136064"], ["updated_at", "2018-02-16 06:59:40.136064"]]
2644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2645
+  (0.4ms) rollback transaction
2646
+  (0.1ms) begin transaction
2647
+  (0.1ms) SAVEPOINT active_record_1
2648
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
2649
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:40.139684"], ["updated_at", "2018-02-16 06:59:40.139684"]]
2650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2651
+  (0.1ms) SAVEPOINT active_record_1
2652
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:59:40.144705"], ["id", 1]]
2653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2654
+  (0.5ms) rollback transaction
2655
+  (0.0ms) begin transaction
2656
+  (0.0ms) SAVEPOINT active_record_1
2657
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2658
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:40.147649"], ["updated_at", "2018-02-16 06:59:40.147649"]]
2659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2660
+  (0.0ms) SAVEPOINT active_record_1
2661
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2663
+  (0.3ms) rollback transaction
2664
+  (0.0ms) begin transaction
2665
+  (0.1ms) SAVEPOINT active_record_1
2666
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2667
+ SQL (0.6ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-02-16 06:59:40.155806"], ["updated_at", "2018-02-16 06:59:40.155806"]]
2668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2669
+  (0.4ms) rollback transaction
2670
+  (0.0ms) begin transaction
2671
+  (0.0ms) SAVEPOINT active_record_1
2672
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2673
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:40.159876"], ["updated_at", "2018-02-16 06:59:40.159876"]]
2674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2675
+  (0.5ms) rollback transaction
2676
+  (0.0ms) begin transaction
2677
+  (0.0ms) SAVEPOINT active_record_1
2678
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2679
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 06:59:40.162785"], ["updated_at", "2018-02-16 06:59:40.162785"]]
2680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2681
+  (0.0ms) SAVEPOINT active_record_1
2682
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2683
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-02-16 06:59:40.164214"], ["updated_at", "2018-02-16 06:59:40.164214"]]
2684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2685
+  (0.0ms) SAVEPOINT active_record_1
2686
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2687
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-02-16 06:59:40.165361"], ["updated_at", "2018-02-16 06:59:40.165361"]]
2688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2689
+ Processing by SortableController#reorder as HTML
2690
+ Parameters: {"Item"=>["1", "3", "2"]}
2691
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2692
+  (0.1ms) SAVEPOINT active_record_1
2693
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 0], ["id", 1]]
2694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2695
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2696
+  (0.1ms) SAVEPOINT active_record_1
2697
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1], ["id", 3]]
2698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2699
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2700
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
2701
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2702
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2703
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2704
+  (0.4ms) rollback transaction
2705
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2706
+  (0.0ms) begin transaction
2707
+  (0.0ms) SAVEPOINT active_record_1
2708
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 07:02:22.628298"], ["updated_at", "2018-02-16 07:02:22.628298"]]
2709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2710
+  (0.0ms) SAVEPOINT active_record_1
2711
+ SQL (0.0ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:22.629557"], ["updated_at", "2018-02-16 07:02:22.629557"]]
2712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2713
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2714
+  (0.4ms) rollback transaction
2715
+  (0.0ms) begin transaction
2716
+  (0.0ms) SAVEPOINT active_record_1
2717
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2718
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.633889"], ["updated_at", "2018-02-16 07:02:22.633889"], ["sort", 1]]
2719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2720
+  (0.0ms) SAVEPOINT active_record_1
2721
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2723
+  (0.4ms) rollback transaction
2724
+  (0.0ms) begin transaction
2725
+  (0.0ms) SAVEPOINT active_record_1
2726
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2727
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.639918"], ["updated_at", "2018-02-16 07:02:22.639918"], ["sort", 1]]
2728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2729
+  (0.0ms) SAVEPOINT active_record_1
2730
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 07:02:22.641245"], ["id", 1]]
2731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2732
+  (0.4ms) rollback transaction
2733
+  (0.0ms) begin transaction
2734
+  (0.1ms) SAVEPOINT active_record_1
2735
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2736
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.646055"], ["updated_at", "2018-02-16 07:02:22.646055"], ["sequence", 1]]
2737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2738
+  (0.4ms) rollback transaction
2739
+  (0.0ms) begin transaction
2740
+  (0.0ms) SAVEPOINT active_record_1
2741
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2742
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.650067"], ["updated_at", "2018-02-16 07:02:22.650067"], ["sort", 1]]
2743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2744
+  (0.4ms) rollback transaction
2745
+  (0.0ms) begin transaction
2746
+  (0.0ms) SAVEPOINT active_record_1
2747
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:22.652887"], ["updated_at", "2018-02-16 07:02:22.652887"]]
2748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2749
+  (0.4ms) rollback transaction
2750
+  (0.2ms) begin transaction
2751
+  (0.0ms) SAVEPOINT active_record_1
2752
+ SQL (1.0ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:22.655777"], ["updated_at", "2018-02-16 07:02:22.655777"]]
2753
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2754
+  (0.0ms) SAVEPOINT active_record_1
2755
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2756
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.658984"], ["updated_at", "2018-02-16 07:02:22.658984"], ["sort", 1001]]
2757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2758
+  (0.4ms) rollback transaction
2759
+  (0.0ms) begin transaction
2760
+  (0.0ms) SAVEPOINT active_record_1
2761
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2762
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.664837"], ["updated_at", "2018-02-16 07:02:22.664837"], ["sort", 1]]
2763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2764
+  (0.1ms) SAVEPOINT active_record_1
2765
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2766
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.666487"], ["updated_at", "2018-02-16 07:02:22.666487"], ["sort", 2]]
2767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2768
+  (0.0ms) SAVEPOINT active_record_1
2769
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2770
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.667597"], ["updated_at", "2018-02-16 07:02:22.667597"], ["sort", 3]]
2771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2772
+ Processing by SortableController#reorder as HTML
2773
+ Parameters: {"Item"=>["1", "3", "2"]}
2774
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC
2775
+  (0.1ms) SAVEPOINT active_record_1
2776
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 07:02:22.671396"], ["id", 1]]
2777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2778
+  (0.0ms) SAVEPOINT active_record_1
2779
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 07:02:22.672780"], ["id", 3]]
2780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2781
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
2782
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2783
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2784
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2785
+  (0.5ms) rollback transaction
2786
+  (0.0ms) begin transaction
2787
+  (0.0ms) rollback transaction
2788
+  (0.0ms) begin transaction
2789
+  (0.0ms) SAVEPOINT active_record_1
2790
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2791
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.682916"], ["updated_at", "2018-02-16 07:02:22.682916"], ["sort", 1]]
2792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2793
+  (0.4ms) rollback transaction
2794
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2795
+  (0.1ms) begin transaction
2796
+  (0.1ms) SAVEPOINT active_record_1
2797
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2798
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:24.251403"], ["updated_at", "2018-02-16 07:02:24.251403"]]
2799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2800
+  (1.7ms) rollback transaction
2801
+  (0.0ms) begin transaction
2802
+  (0.0ms) SAVEPOINT active_record_1
2803
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 07:02:24.257110"], ["updated_at", "2018-02-16 07:02:24.257110"]]
2804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2805
+  (0.0ms) SAVEPOINT active_record_1
2806
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:24.258235"], ["updated_at", "2018-02-16 07:02:24.258235"]]
2807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2808
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2809
+  (0.4ms) rollback transaction
2810
+  (0.0ms) begin transaction
2811
+  (0.1ms) SAVEPOINT active_record_1
2812
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:24.263735"], ["updated_at", "2018-02-16 07:02:24.263735"]]
2813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2814
+  (0.0ms) SAVEPOINT active_record_1
2815
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2816
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-02-16 07:02:24.265200"], ["updated_at", "2018-02-16 07:02:24.265200"]]
2817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2818
+  (0.4ms) rollback transaction
2819
+  (0.0ms) begin transaction
2820
+  (0.1ms) SAVEPOINT active_record_1
2821
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:24.268919"], ["updated_at", "2018-02-16 07:02:24.268919"]]
2822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2823
+  (0.4ms) rollback transaction
2824
+  (0.0ms) begin transaction
2825
+  (0.1ms) SAVEPOINT active_record_1
2826
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2827
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-02-16 07:02:24.276818"], ["updated_at", "2018-02-16 07:02:24.276818"]]
2828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2829
+  (0.4ms) rollback transaction
2830
+  (0.0ms) begin transaction
2831
+  (0.0ms) SAVEPOINT active_record_1
2832
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2833
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:24.279768"], ["updated_at", "2018-02-16 07:02:24.279768"]]
2834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2835
+  (0.1ms) SAVEPOINT active_record_1
2836
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 07:02:24.283084"], ["id", 1]]
2837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2838
+  (0.4ms) rollback transaction
2839
+  (0.0ms) begin transaction
2840
+  (0.0ms) SAVEPOINT active_record_1
2841
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2842
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:24.285265"], ["updated_at", "2018-02-16 07:02:24.285265"]]
2843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2844
+  (0.0ms) SAVEPOINT active_record_1
2845
+ SQL (0.0ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2847
+  (0.4ms) rollback transaction
2848
+  (0.0ms) begin transaction
2849
+  (0.0ms) SAVEPOINT active_record_1
2850
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2851
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:24.291823"], ["updated_at", "2018-02-16 07:02:24.291823"]]
2852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2853
+  (0.0ms) SAVEPOINT active_record_1
2854
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2855
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-02-16 07:02:24.293146"], ["updated_at", "2018-02-16 07:02:24.293146"]]
2856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2857
+  (0.0ms) SAVEPOINT active_record_1
2858
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2859
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-02-16 07:02:24.294113"], ["updated_at", "2018-02-16 07:02:24.294113"]]
2860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2861
+ Processing by SortableController#reorder as HTML
2862
+ Parameters: {"Item"=>["1", "3", "2"]}
2863
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC
2864
+  (0.0ms) SAVEPOINT active_record_1
2865
+ SQL (0.0ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 0], ["id", 1]]
2866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2867
+  (0.0ms) SAVEPOINT active_record_1
2868
+ SQL (0.0ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1], ["id", 3]]
2869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2870
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
2871
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2872
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2873
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2874
+  (0.4ms) rollback transaction
2875
+  (0.1ms) begin transaction
2876
+  (0.0ms) SAVEPOINT active_record_1
2877
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2878
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:24.305860"], ["updated_at", "2018-02-16 07:02:24.305860"]]
2879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2880
+  (0.4ms) rollback transaction
2881
+  (0.0ms) begin transaction
2882
+  (0.0ms) rollback transaction
2883
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2884
+  (0.0ms) begin transaction
2885
+  (0.1ms) SAVEPOINT active_record_1
2886
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2887
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:25.897850"], ["updated_at", "2018-02-16 07:02:25.897850"]]
2888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2889
+  (0.1ms) SAVEPOINT active_record_1
2890
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2891
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-02-16 07:02:25.899898"], ["updated_at", "2018-02-16 07:02:25.899898"]]
2892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2893
+  (0.0ms) SAVEPOINT active_record_1
2894
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2895
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-02-16 07:02:25.901101"], ["updated_at", "2018-02-16 07:02:25.901101"]]
2896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2897
+ Processing by SortableController#reorder as HTML
2898
+ Parameters: {"Item"=>["1", "3", "2"]}
2899
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC
2900
+  (0.0ms) SAVEPOINT active_record_1
2901
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 07:02:25.907980"], ["id", 1]]
2902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2903
+  (0.0ms) SAVEPOINT active_record_1
2904
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 07:02:25.908877"], ["id", 3]]
2905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2906
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
2907
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
2908
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
2909
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
2910
+  (1.7ms) rollback transaction
2911
+  (0.1ms) begin transaction
2912
+  (0.1ms) SAVEPOINT active_record_1
2913
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2914
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:25.916461"], ["updated_at", "2018-02-16 07:02:25.916461"]]
2915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2916
+  (0.4ms) rollback transaction
2917
+  (0.0ms) begin transaction
2918
+  (0.0ms) rollback transaction
2919
+  (0.0ms) begin transaction
2920
+  (0.1ms) SAVEPOINT active_record_1
2921
+  (0.3ms) SELECT MAX("items"."sort") FROM "items"
2922
+ SQL (0.7ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:25.923671"], ["updated_at", "2018-02-16 07:02:25.923671"]]
2923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2924
+  (0.6ms) rollback transaction
2925
+  (0.0ms) begin transaction
2926
+  (0.1ms) SAVEPOINT active_record_1
2927
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
2928
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-02-16 07:02:25.934582"], ["updated_at", "2018-02-16 07:02:25.934582"]]
2929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2930
+  (0.4ms) rollback transaction
2931
+  (0.0ms) begin transaction
2932
+  (0.0ms) SAVEPOINT active_record_1
2933
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2934
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:25.937711"], ["updated_at", "2018-02-16 07:02:25.937711"]]
2935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2936
+  (0.1ms) SAVEPOINT active_record_1
2937
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 07:02:25.940880"], ["id", 1]]
2938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2939
+  (0.6ms) rollback transaction
2940
+  (0.0ms) begin transaction
2941
+  (0.1ms) SAVEPOINT active_record_1
2942
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
2943
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:25.944270"], ["updated_at", "2018-02-16 07:02:25.944270"]]
2944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2945
+  (0.1ms) SAVEPOINT active_record_1
2946
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
2947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2948
+  (0.4ms) rollback transaction
2949
+  (0.1ms) begin transaction
2950
+  (0.0ms) SAVEPOINT active_record_1
2951
+ SQL (0.6ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 07:02:25.948927"], ["updated_at", "2018-02-16 07:02:25.948927"]]
2952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2953
+  (0.0ms) SAVEPOINT active_record_1
2954
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-02-16 07:02:25.950704"], ["updated_at", "2018-02-16 07:02:25.950704"]]
2955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2956
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2957
+  (0.4ms) rollback transaction
2958
+  (0.1ms) begin transaction
2959
+  (0.1ms) SAVEPOINT active_record_1
2960
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:25.956676"], ["updated_at", "2018-02-16 07:02:25.956676"]]
2961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2962
+  (0.4ms) rollback transaction
2963
+  (0.1ms) begin transaction
2964
+  (0.1ms) SAVEPOINT active_record_1
2965
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:25.960258"], ["updated_at", "2018-02-16 07:02:25.960258"]]
2966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2967
+  (0.0ms) SAVEPOINT active_record_1
2968
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
2969
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-02-16 07:02:25.961738"], ["updated_at", "2018-02-16 07:02:25.961738"]]
2970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2971
+  (0.4ms) rollback transaction