rails_sortable 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/lib/rails_sortable/version.rb +1 -1
  4. data/spec/dummy/app/assets/javascripts/items.js +0 -2
  5. data/spec/dummy/app/assets/javascripts/multiple_classes.js +1 -3
  6. data/spec/dummy/app/assets/javascripts/sequenced_items.js +1 -3
  7. data/spec/dummy/db/development.sqlite3 +0 -0
  8. data/spec/dummy/log/development.log +159 -0
  9. data/spec/dummy/log/test.log +744 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-A/-A7_8_MYsJx2PDRA-tSgnGq6z_AYVSZg3Wzw2g39Ll0.cache +0 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2I/2Irq1AU-DIfVBlPGvWSgRxEg2MqMDmADG6WQUAcd8Eo.cache +0 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3B/3Be7pM0hj5UJCs2r47IhpKR6ZLq93IfvouTPEOKCOYo.cache +1 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/44/44PXxaDB5DKHa1cNx_x2cjNkjFaIAzzXZ0cYULGl0Sw.cache +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6r/6r82hgXDFp9O087kYk74ihInkVzSW1SKWJ_3tEFO10s.cache +1 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8V/8VSW-32nGZcyBdSlCgGpIGOClrzZCtrcj2EOpEG_T8Y.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9I/9IIZmBD1MEFYjYxB2ymBcTiywx-yu0CQBTVnROrqbEM.cache +1 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ap/ApFurNEUCg00ef5bcrPMuA-R5GgBVWjr2AecgA-Zn1A.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BJ/BJ4CqxUM1jMrkjgOYP--W7ke2Gn4xM1vAcwRCF1KvHY.cache +0 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/E9/E9-iXGREF2boPVTbrkS3l21_yR6xBWTDKWD8jxmIZY0.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F9/F9PVXNJ0zAB15xgC8B1skuonq6cDS16OtmKa7VLqGa0.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFuNhzNZA5ILxIzWi2wxnZ_uEYPrAQ4OVoo0Y_92muU.cache +0 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jx/JxMfKNpOX9fSg9wK4InGsuvsnX-dbKlrEiUiA94sIVE.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nb/NbdcpptyOGjqsVQnYDZprB-eHAQa5mxIZAAYTMaeWzE.cache +1 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ON/ONa-_yyxM-6Jwb8nd_UbBdNNHYCd7NkcK9qp-jFbuxQ.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Q-/Q-8sguKwAAN-tazMV_uLhxyUfWo9B43Sv1Meid7tAkA.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S1/S1QOAlBnRFRtUUFJtf_XOMqOPJMJMNxAL2aNUAU88xU.cache +1 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UZ/UZCeRACjTy1dSiJlXXGAACZMyUN67mfTZH3APaFtlAk.cache +1 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uy/UyetlmKTIdtCVPOSocRRkF1xMs0MKx180qYYhbZcY_w.cache +3 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vw/vWmbYLfVIq8FLIBPBuos-nm4hLJF7B8T4Lyhnd3lNMk.cache +3 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_c/_C8OKLSpL7Gb_S2PoCt3hV3YK-349D8nFFEVDOlQF00.cache +1 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cK/cKTTtku78zEJGKmJZ7M9vh-RJn80JXPaA8ydu6mCdNI.cache +3 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/i5/i5SnV3CqxS3d4Jwz_G6njSLZDTR5DKATTTRaXfL8d4I.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kB/kBTIidDZtExp6m2DO8ZBckTcqowVmKEBjplzXcysSEY.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p2/p25_M0eBowYsigE3Cho4J6Dt0t6J2BlakkPCSZU3-mM.cache +3 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q8/q8ZW3PZmK4T01mbIA88_4P3iDhQZJwIVqcUQbyl3fZY.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x5/x5ha-Z4qc_6UIT9KoHrYIvcDTGzhHTJUBYSnsxL_R9o.cache +1 -0
  37. data/vendor/assets/javascripts/plugin.js +2 -3
  38. metadata +54 -4
  39. data/spec/dummy/tmp/pids/server.pid +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdbbe937287dfd784fb3b6d4f8cf2c5dd8a513580cbdea594a37ede1f7f8d7a7
4
- data.tar.gz: d0af01d6e990af8f9047820666a278a1c2f5eab3e5b2bd46bc0b2f1c74f2453a
3
+ metadata.gz: 2b3aaf27ff8752d22e1f98d763fe97592d2827ec510fa7471ee0a478fc44b811
4
+ data.tar.gz: da62dcc27afa7f402e57bb1a83ac602dc5036c0a5d67bd8fbf5661fc507272a5
5
5
  SHA512:
6
- metadata.gz: db72da9f15ab2803f7237fb7ead45f05dcf1d093f95ce9ae7296151c4fb02f51948847dce0187628ca7e215c981e6435770132f4ce2e439145d33374707401e2
7
- data.tar.gz: 892509aadbe29dc12d90a580ac1dc9896d8bd6bb81da9a17307b0809010d4391bf02949d82423305ac7205394ef1f4f913993d54e3ccfb4bbc00de0d63d1ab1f
6
+ metadata.gz: 03c9413b30873f2103a2de6c9dfa9035a54f461293d453507309acf80ab72c48953063385a1659cc20d15684942407aa597c3e3697b08d0e88cc1edd31a08d83
7
+ data.tar.gz: 4f7f14b38ec27dc3e53ac818ff6e1e7f52ffcadbba1be23634e9d223b966ce41f585a290f0fe14a1cd764d597536a38243c4444ededfc47b441c80e810583c1d
data/README.md CHANGED
@@ -90,6 +90,9 @@ $(function() {
90
90
  });
91
91
  ```
92
92
 
93
+ ## More
94
+ Please have a look at [Use cases@wiki](https://github.com/itmammoth/rails_sortable/wiki#use-cases) for further information.
95
+
93
96
  # Javascript options
94
97
  jQuery plugin `railsSortable` is just a wrapper of `jquery.ui.sortable`. therefore it accepts all of `sortbale` options.
95
98
 
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -1,10 +1,8 @@
1
1
  (function($) {
2
-
3
2
  $(".sortable-items").railsSortable({
4
3
  update: function(event, ui) {
5
4
  console.log('Yay! RailsSortable never spoil your implementation for sotable events.');
6
5
  console.log(event, ui);
7
6
  },
8
7
  });
9
-
10
8
  })(jQuery);
@@ -1,5 +1,3 @@
1
1
  (function($) {
2
-
3
2
  $(".sortable-multiple-classes").railsSortable();
4
-
5
- })(jQuery);
3
+ })(jQuery);
@@ -1,5 +1,3 @@
1
1
  (function($) {
2
-
3
2
  $(".sortable-sequenced-items").railsSortable();
4
-
5
- })(jQuery);
3
+ })(jQuery);
@@ -3927,3 +3927,162 @@ Processing by MultipleClassesController#index as HTML
3927
3927
  Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.3ms)
3928
3928
 
3929
3929
 
3930
+ Started GET "/" for ::1 at 2018-05-25 18:08:12 +0900
3931
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3932
+ Processing by Rails::WelcomeController#index as HTML
3933
+ 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
3934
+ 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 (6.4ms)
3935
+ Completed 200 OK in 29ms (Views: 16.6ms | ActiveRecord: 0.0ms)
3936
+
3937
+
3938
+ Started GET "/items" for ::1 at 2018-05-25 18:08:18 +0900
3939
+ Processing by ItemsController#index as HTML
3940
+ Rendering items/index.html.erb within layouts/application
3941
+ Item Load (0.7ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
3942
+ Rendered items/index.html.erb within layouts/application (18.4ms)
3943
+ Completed 200 OK in 368ms (Views: 358.3ms | ActiveRecord: 1.4ms)
3944
+
3945
+
3946
+ Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3947
+ Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3948
+ Started GET "/assets/jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3949
+ Started GET "/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3950
+ Started GET "/assets/jquery-ui/version.self-c8e3d1203da26ea7efdf83c1eabb3f0ba55cb68e463f5ccf0d77bd15ce6a8e61.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3951
+ Started GET "/assets/jquery-ui/ie.self-163eb039dcb1e0c3471b7d91386eabb8753da6906e84824c019f9ff56bdb83a6.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3952
+ Started GET "/assets/jquery-ui/widget.self-fca20bcec06d192f97cffa6e734e24360e227237b8ae7d7e7e60754df7d5444f.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3953
+ Started GET "/assets/jquery-ui/widgets/mouse.self-f0790a202dcf54fab051e71b042335d5346f9cceb0f645223c1dab93f349a04b.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3954
+ Started GET "/assets/jquery-ui/data.self-2067c82e6fe39a9cba5623206a5dc28d5c60d26b95cd100855b78cacf72865b8.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3955
+ Started GET "/assets/jquery-ui/scroll-parent.self-38e26a71a450a29fb63425e8f589a7046862f927eb0a1dbf6a6c44da05196d2e.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3956
+ Started GET "/assets/jquery-ui/widgets/sortable.self-6e5e1f07a29b5a89ec1d359363d2800904e3ae548a38ab2f8eded36746d1adbe.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3957
+ Started GET "/assets/plugin.self-36f2ec2747dda8b53ef2782774bc987c34259b612a2b6bd7491a9efda17529a3.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3958
+ Started GET "/assets/rails_sortable.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3959
+ Started GET "/assets/sequenced_items.self-bd07269bb38e1168792a274bacc24aa011a3f7bdb35130acb91f2f39e768f2ed.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3960
+ Started GET "/assets/application.self-120f3cf1cb67bea53c4a2a57336b34ca04b04b55a55c38cf76ce20a147e5eff9.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3961
+ Started GET "/assets/multiple_classes.self-53973d459df78e9f48c10465e01232b4609d2b3b4c94fbe372fe77c897f60ad7.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3962
+ Started GET "/assets/items.self-d03e2e146c48fdcab1d5818b466741b5283c64a82d13b8d529761d2b3b48cf3d.js?body=1" for ::1 at 2018-05-25 18:08:18 +0900
3963
+ Started POST "/sortable/reorder" for ::1 at 2018-05-25 18:08:22 +0900
3964
+ Processing by SortableController#reorder as JSON
3965
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"50"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"Item", "id"=>"50"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}]}}
3966
+  (0.1ms) begin transaction
3967
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 50], ["LIMIT", 1]]
3968
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:08:22.333737"], ["id", 50]]
3969
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 41], ["LIMIT", 1]]
3970
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:08:22.335570"], ["id", 41]]
3971
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 42], ["LIMIT", 1]]
3972
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:08:22.336772"], ["id", 42]]
3973
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 43], ["LIMIT", 1]]
3974
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:08:22.337973"], ["id", 43]]
3975
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 44], ["LIMIT", 1]]
3976
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-05-25 09:08:22.340778"], ["id", 44]]
3977
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 45], ["LIMIT", 1]]
3978
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-05-25 09:08:22.342534"], ["id", 45]]
3979
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 46], ["LIMIT", 1]]
3980
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-05-25 09:08:22.345133"], ["id", 46]]
3981
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 47], ["LIMIT", 1]]
3982
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 7], ["updated_at", "2018-05-25 09:08:22.347761"], ["id", 47]]
3983
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 48], ["LIMIT", 1]]
3984
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 8], ["updated_at", "2018-05-25 09:08:22.350130"], ["id", 48]]
3985
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 49], ["LIMIT", 1]]
3986
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 9], ["updated_at", "2018-05-25 09:08:22.352421"], ["id", 49]]
3987
+  (2.9ms) commit transaction
3988
+ Completed 200 OK in 25ms (ActiveRecord: 6.0ms)
3989
+
3990
+
3991
+ Started POST "/sortable/reorder" for ::1 at 2018-05-25 18:08:29 +0900
3992
+ Processing by SortableController#reorder as JSON
3993
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"50"}, {"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"Item", "id"=>"50"}, {"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}]}}
3994
+  (0.1ms) begin transaction
3995
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 50], ["LIMIT", 1]]
3996
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 49], ["LIMIT", 1]]
3997
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:08:29.112426"], ["id", 49]]
3998
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 41], ["LIMIT", 1]]
3999
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:08:29.114126"], ["id", 41]]
4000
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 42], ["LIMIT", 1]]
4001
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:08:29.118872"], ["id", 42]]
4002
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 43], ["LIMIT", 1]]
4003
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-05-25 09:08:29.121324"], ["id", 43]]
4004
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 44], ["LIMIT", 1]]
4005
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-05-25 09:08:29.122527"], ["id", 44]]
4006
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 45], ["LIMIT", 1]]
4007
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-05-25 09:08:29.123631"], ["id", 45]]
4008
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 46], ["LIMIT", 1]]
4009
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 7], ["updated_at", "2018-05-25 09:08:29.125735"], ["id", 46]]
4010
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 47], ["LIMIT", 1]]
4011
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 8], ["updated_at", "2018-05-25 09:08:29.127523"], ["id", 47]]
4012
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 48], ["LIMIT", 1]]
4013
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 9], ["updated_at", "2018-05-25 09:08:29.130109"], ["id", 48]]
4014
+  (4.1ms) commit transaction
4015
+ Completed 200 OK in 26ms (ActiveRecord: 6.4ms)
4016
+
4017
+
4018
+ Started GET "/items" for ::1 at 2018-05-25 18:08:30 +0900
4019
+ Processing by ItemsController#index as HTML
4020
+ Rendering items/index.html.erb within layouts/application
4021
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
4022
+ Rendered items/index.html.erb within layouts/application (4.6ms)
4023
+ Completed 200 OK in 55ms (Views: 51.7ms | ActiveRecord: 0.2ms)
4024
+
4025
+
4026
+ Started POST "/sortable/reorder" for ::1 at 2018-05-25 18:08:34 +0900
4027
+ Processing by SortableController#reorder as JSON
4028
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"50"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"50"}]}}
4029
+  (0.1ms) begin transaction
4030
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 49], ["LIMIT", 1]]
4031
+ SQL (1.7ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:08:34.367806"], ["id", 49]]
4032
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 41], ["LIMIT", 1]]
4033
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:08:34.371833"], ["id", 41]]
4034
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 42], ["LIMIT", 1]]
4035
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:08:34.374187"], ["id", 42]]
4036
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 43], ["LIMIT", 1]]
4037
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:08:34.375864"], ["id", 43]]
4038
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 44], ["LIMIT", 1]]
4039
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-05-25 09:08:34.377739"], ["id", 44]]
4040
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 45], ["LIMIT", 1]]
4041
+ SQL (0.9ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-05-25 09:08:34.380450"], ["id", 45]]
4042
+ Item Load (1.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 46], ["LIMIT", 1]]
4043
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-05-25 09:08:34.386278"], ["id", 46]]
4044
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 47], ["LIMIT", 1]]
4045
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 7], ["updated_at", "2018-05-25 09:08:34.388380"], ["id", 47]]
4046
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 48], ["LIMIT", 1]]
4047
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 8], ["updated_at", "2018-05-25 09:08:34.391551"], ["id", 48]]
4048
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 50], ["LIMIT", 1]]
4049
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 9], ["updated_at", "2018-05-25 09:08:34.393783"], ["id", 50]]
4050
+  (7.3ms) commit transaction
4051
+ Completed 200 OK in 38ms (ActiveRecord: 13.3ms)
4052
+
4053
+
4054
+ Started POST "/sortable/reorder" for ::1 at 2018-05-25 18:08:36 +0900
4055
+ Processing by SortableController#reorder as JSON
4056
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"50"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"50"}]}}
4057
+  (0.0ms) begin transaction
4058
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 41], ["LIMIT", 1]]
4059
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:08:36.528234"], ["id", 41]]
4060
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 42], ["LIMIT", 1]]
4061
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:08:36.530718"], ["id", 42]]
4062
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 43], ["LIMIT", 1]]
4063
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:08:36.534173"], ["id", 43]]
4064
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 44], ["LIMIT", 1]]
4065
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:08:36.536620"], ["id", 44]]
4066
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 45], ["LIMIT", 1]]
4067
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-05-25 09:08:36.539362"], ["id", 45]]
4068
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 46], ["LIMIT", 1]]
4069
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-05-25 09:08:36.541635"], ["id", 46]]
4070
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 47], ["LIMIT", 1]]
4071
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-05-25 09:08:36.543089"], ["id", 47]]
4072
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 48], ["LIMIT", 1]]
4073
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 7], ["updated_at", "2018-05-25 09:08:36.545567"], ["id", 48]]
4074
+ Item Load (0.4ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 49], ["LIMIT", 1]]
4075
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 8], ["updated_at", "2018-05-25 09:08:36.549770"], ["id", 49]]
4076
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 50], ["LIMIT", 1]]
4077
+  (2.5ms) commit transaction
4078
+ Completed 200 OK in 29ms (ActiveRecord: 5.7ms)
4079
+
4080
+
4081
+ Started GET "/items" for ::1 at 2018-05-25 18:08:37 +0900
4082
+ Processing by ItemsController#index as HTML
4083
+ Rendering items/index.html.erb within layouts/application
4084
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
4085
+ Rendered items/index.html.erb within layouts/application (4.6ms)
4086
+ Completed 200 OK in 54ms (Views: 51.4ms | ActiveRecord: 0.2ms)
4087
+
4088
+
@@ -6529,3 +6529,747 @@ Completed 200 OK in 6ms (ActiveRecord: 0.4ms)
6529
6529
  SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-04-27 07:31:58.299372"], ["updated_at", "2018-04-27 07:31:58.299372"]]
6530
6530
   (0.0ms) RELEASE SAVEPOINT active_record_1
6531
6531
   (0.4ms) rollback transaction
6532
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6533
+  (0.0ms) begin transaction
6534
+  (0.0ms) SAVEPOINT active_record_1
6535
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-05-25 09:06:18.341607"], ["updated_at", "2018-05-25 09:06:18.341607"]]
6536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6537
+  (0.0ms) SAVEPOINT active_record_1
6538
+ SQL (0.0ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:18.343444"], ["updated_at", "2018-05-25 09:06:18.343444"]]
6539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6540
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6541
+  (1.0ms) rollback transaction
6542
+  (0.0ms) begin transaction
6543
+  (0.0ms) SAVEPOINT active_record_1
6544
+  (0.3ms) SELECT MAX("items"."sort") FROM "items"
6545
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.352603"], ["updated_at", "2018-05-25 09:06:18.352603"], ["sort", 1]]
6546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6547
+  (0.0ms) SAVEPOINT active_record_1
6548
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6550
+  (0.9ms) rollback transaction
6551
+  (0.1ms) begin transaction
6552
+  (0.1ms) SAVEPOINT active_record_1
6553
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6554
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.380284"], ["updated_at", "2018-05-25 09:06:18.380284"], ["sort", 1]]
6555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6556
+  (0.0ms) SAVEPOINT active_record_1
6557
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-05-25 09:06:18.383053"], ["id", 1]]
6558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6559
+  (1.2ms) rollback transaction
6560
+  (0.0ms) begin transaction
6561
+  (0.1ms) SAVEPOINT active_record_1
6562
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6563
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.392212"], ["updated_at", "2018-05-25 09:06:18.392212"], ["sequence", 1]]
6564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6565
+  (0.6ms) rollback transaction
6566
+  (0.0ms) begin transaction
6567
+  (0.0ms) SAVEPOINT active_record_1
6568
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:06:18.399351"], ["updated_at", "2018-05-25 09:06:18.399351"]]
6569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6570
+  (0.0ms) SAVEPOINT active_record_1
6571
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6572
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.402050"], ["updated_at", "2018-05-25 09:06:18.402050"], ["sort", 1001]]
6573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6574
+  (0.8ms) rollback transaction
6575
+  (0.1ms) begin transaction
6576
+  (0.0ms) SAVEPOINT active_record_1
6577
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:06:18.405782"], ["updated_at", "2018-05-25 09:06:18.405782"]]
6578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6579
+  (2.2ms) rollback transaction
6580
+  (0.1ms) begin transaction
6581
+  (0.0ms) SAVEPOINT active_record_1
6582
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6583
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.411292"], ["updated_at", "2018-05-25 09:06:18.411292"], ["sort", 1]]
6584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6585
+  (1.5ms) rollback transaction
6586
+  (0.1ms) begin transaction
6587
+  (0.1ms) SAVEPOINT active_record_1
6588
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6589
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.427082"], ["updated_at", "2018-05-25 09:06:18.427082"], ["sort", 1]]
6590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6591
+  (0.0ms) SAVEPOINT active_record_1
6592
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6593
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.429016"], ["updated_at", "2018-05-25 09:06:18.429016"], ["sort", 2]]
6594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6595
+  (0.0ms) SAVEPOINT active_record_1
6596
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6597
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.430516"], ["updated_at", "2018-05-25 09:06:18.430516"], ["sort", 3]]
6598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6599
+ Processing by SortableController#reorder as HTML
6600
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"1"}, {"klass"=>"Item", "id"=>"3"}, {"klass"=>"Item", "id"=>"2"}]}
6601
+  (0.1ms) SAVEPOINT active_record_1
6602
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6603
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:06:18.437327"], ["id", 1]]
6604
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6605
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:06:18.438889"], ["id", 3]]
6606
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6608
+ Completed 200 OK in 5ms (ActiveRecord: 0.5ms)
6609
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6610
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6611
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6612
+  (2.4ms) rollback transaction
6613
+  (0.1ms) begin transaction
6614
+  (0.0ms) SAVEPOINT active_record_1
6615
+  (0.1ms) SELECT MAX("first_items"."sort") FROM "first_items"
6616
+ SQL (0.3ms) INSERT INTO "first_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.452197"], ["updated_at", "2018-05-25 09:06:18.452197"], ["sort", 1]]
6617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6618
+  (0.0ms) SAVEPOINT active_record_1
6619
+  (0.0ms) SELECT MAX("first_items"."sort") FROM "first_items"
6620
+ SQL (0.0ms) INSERT INTO "first_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.453894"], ["updated_at", "2018-05-25 09:06:18.453894"], ["sort", 2]]
6621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6622
+  (0.1ms) SAVEPOINT active_record_1
6623
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
6624
+ SQL (0.2ms) INSERT INTO "second_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.458282"], ["updated_at", "2018-05-25 09:06:18.458282"], ["sort", 1]]
6625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6626
+  (0.0ms) SAVEPOINT active_record_1
6627
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
6628
+ SQL (0.0ms) INSERT INTO "second_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.460638"], ["updated_at", "2018-05-25 09:06:18.460638"], ["sort", 2]]
6629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6630
+ Processing by SortableController#reorder as HTML
6631
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"2"}, {"klass"=>"FirstItem", "id"=>"2"}, {"klass"=>"FirstItem", "id"=>"1"}, {"klass"=>"SecondItem", "id"=>"1"}]}
6632
+  (0.0ms) SAVEPOINT active_record_1
6633
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 2]]
6634
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:06:18.463822"], ["id", 2]]
6635
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 2]]
6636
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:06:18.464839"], ["id", 2]]
6637
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 1]]
6638
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:06:18.466343"], ["id", 1]]
6639
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 1]]
6640
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:06:18.467344"], ["id", 1]]
6641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6642
+ Completed 200 OK in 5ms (ActiveRecord: 0.5ms)
6643
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 2]]
6644
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 2]]
6645
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 1]]
6646
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 1]]
6647
+  (0.7ms) rollback transaction
6648
+  (0.0ms) begin transaction
6649
+  (0.0ms) SAVEPOINT active_record_1
6650
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6651
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:06:18.474873"], ["updated_at", "2018-05-25 09:06:18.474873"], ["sort", 1]]
6652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6653
+  (0.6ms) rollback transaction
6654
+  (0.0ms) begin transaction
6655
+  (0.0ms) rollback transaction
6656
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6657
+  (0.0ms) begin transaction
6658
+  (0.1ms) SAVEPOINT active_record_1
6659
+  (0.2ms) SELECT MAX("first_items"."sort") FROM "first_items"
6660
+ SQL (0.6ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.002561"], ["updated_at", "2018-05-25 09:06:22.002561"]]
6661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6662
+  (0.0ms) SAVEPOINT active_record_1
6663
+  (0.0ms) SELECT MAX("first_items"."sort") FROM "first_items"
6664
+ SQL (0.1ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:06:22.006635"], ["updated_at", "2018-05-25 09:06:22.006635"]]
6665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6666
+  (0.0ms) SAVEPOINT active_record_1
6667
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
6668
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.011838"], ["updated_at", "2018-05-25 09:06:22.011838"]]
6669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6670
+  (0.0ms) SAVEPOINT active_record_1
6671
+  (0.0ms) SELECT MAX("second_items"."sort") FROM "second_items"
6672
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:06:22.013086"], ["updated_at", "2018-05-25 09:06:22.013086"]]
6673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6674
+ Processing by SortableController#reorder as HTML
6675
+ Parameters: {"rails_sortable"=>[{"id"=>"2", "klass"=>"SecondItem"}, {"id"=>"2", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"SecondItem"}]}
6676
+  (0.1ms) SAVEPOINT active_record_1
6677
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6678
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:06:22.027681"], ["id", 2]]
6679
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6680
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:06:22.029027"], ["id", 2]]
6681
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6682
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:06:22.029927"], ["id", 1]]
6683
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6684
+ SQL (0.0ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:06:22.030801"], ["id", 1]]
6685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6686
+ Completed 200 OK in 7ms (ActiveRecord: 0.6ms)
6687
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6688
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6689
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6690
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6691
+  (0.9ms) rollback transaction
6692
+  (0.0ms) begin transaction
6693
+  (0.0ms) SAVEPOINT active_record_1
6694
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6695
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.040715"], ["updated_at", "2018-05-25 09:06:22.040715"]]
6696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6697
+  (0.1ms) SAVEPOINT active_record_1
6698
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6699
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:06:22.042897"], ["updated_at", "2018-05-25 09:06:22.042897"]]
6700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6701
+  (0.0ms) SAVEPOINT active_record_1
6702
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6703
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-05-25 09:06:22.045698"], ["updated_at", "2018-05-25 09:06:22.045698"]]
6704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6705
+ Processing by SortableController#reorder as HTML
6706
+ Parameters: {"rails_sortable"=>[{"id"=>"1", "klass"=>"Item"}, {"id"=>"3", "klass"=>"Item"}, {"id"=>"2", "klass"=>"Item"}]}
6707
+  (0.0ms) SAVEPOINT active_record_1
6708
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6709
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:06:22.048250"], ["id", 1]]
6710
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
6711
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:06:22.049174"], ["id", 3]]
6712
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6714
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
6715
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6716
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6717
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
6718
+  (0.8ms) rollback transaction
6719
+  (0.0ms) begin transaction
6720
+  (0.0ms) SAVEPOINT active_record_1
6721
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6722
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.054426"], ["updated_at", "2018-05-25 09:06:22.054426"]]
6723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6724
+  (0.0ms) SAVEPOINT active_record_1
6725
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-05-25 09:06:22.057430"], ["id", 1]]
6726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6727
+  (0.7ms) rollback transaction
6728
+  (0.0ms) begin transaction
6729
+  (0.1ms) SAVEPOINT active_record_1
6730
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6731
+ SQL (0.8ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.060403"], ["updated_at", "2018-05-25 09:06:22.060403"]]
6732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6733
+  (0.0ms) SAVEPOINT active_record_1
6734
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6736
+  (0.6ms) rollback transaction
6737
+  (0.0ms) begin transaction
6738
+  (0.1ms) SAVEPOINT active_record_1
6739
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6740
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-05-25 09:06:22.077528"], ["updated_at", "2018-05-25 09:06:22.077528"]]
6741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6742
+  (0.7ms) rollback transaction
6743
+  (0.1ms) begin transaction
6744
+  (0.0ms) SAVEPOINT active_record_1
6745
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6746
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.080692"], ["updated_at", "2018-05-25 09:06:22.080692"]]
6747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6748
+  (1.0ms) rollback transaction
6749
+  (0.1ms) begin transaction
6750
+  (0.1ms) SAVEPOINT active_record_1
6751
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:06:22.085995"], ["updated_at", "2018-05-25 09:06:22.085995"]]
6752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6753
+  (0.7ms) rollback transaction
6754
+  (0.0ms) begin transaction
6755
+  (0.0ms) SAVEPOINT active_record_1
6756
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:06:22.088759"], ["updated_at", "2018-05-25 09:06:22.088759"]]
6757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6758
+  (0.1ms) SAVEPOINT active_record_1
6759
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6760
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-05-25 09:06:22.090780"], ["updated_at", "2018-05-25 09:06:22.090780"]]
6761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6762
+  (0.6ms) rollback transaction
6763
+  (0.0ms) begin transaction
6764
+  (0.0ms) SAVEPOINT active_record_1
6765
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-05-25 09:06:22.095316"], ["updated_at", "2018-05-25 09:06:22.095316"]]
6766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6767
+  (0.0ms) SAVEPOINT active_record_1
6768
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.096442"], ["updated_at", "2018-05-25 09:06:22.096442"]]
6769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6770
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6771
+  (0.7ms) rollback transaction
6772
+  (0.0ms) begin transaction
6773
+  (0.1ms) rollback transaction
6774
+  (0.0ms) begin transaction
6775
+  (0.0ms) SAVEPOINT active_record_1
6776
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6777
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:22.113252"], ["updated_at", "2018-05-25 09:06:22.113252"]]
6778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6779
+  (0.7ms) rollback transaction
6780
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6781
+  (0.1ms) begin transaction
6782
+  (0.0ms) SAVEPOINT active_record_1
6783
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6784
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.161866"], ["updated_at", "2018-05-25 09:06:24.161866"]]
6785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6786
+  (0.7ms) rollback transaction
6787
+  (0.0ms) begin transaction
6788
+  (0.0ms) rollback transaction
6789
+  (0.0ms) begin transaction
6790
+  (0.0ms) SAVEPOINT active_record_1
6791
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6792
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.170597"], ["updated_at", "2018-05-25 09:06:24.170597"]]
6793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6794
+  (0.0ms) SAVEPOINT active_record_1
6795
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6796
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:06:24.172173"], ["updated_at", "2018-05-25 09:06:24.172173"]]
6797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6798
+  (0.0ms) SAVEPOINT active_record_1
6799
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6800
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-05-25 09:06:24.173364"], ["updated_at", "2018-05-25 09:06:24.173364"]]
6801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6802
+ Processing by SortableController#reorder as HTML
6803
+ Parameters: {"rails_sortable"=>[{"id"=>"1", "klass"=>"Item"}, {"id"=>"3", "klass"=>"Item"}, {"id"=>"2", "klass"=>"Item"}]}
6804
+  (0.1ms) SAVEPOINT active_record_1
6805
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6806
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:06:24.184221"], ["id", 1]]
6807
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
6808
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:06:24.185875"], ["id", 3]]
6809
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6811
+ Completed 200 OK in 6ms (ActiveRecord: 0.6ms)
6812
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6813
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6814
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
6815
+  (1.1ms) rollback transaction
6816
+  (0.1ms) begin transaction
6817
+  (0.1ms) SAVEPOINT active_record_1
6818
+  (0.2ms) SELECT MAX("first_items"."sort") FROM "first_items"
6819
+ SQL (0.4ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.201183"], ["updated_at", "2018-05-25 09:06:24.201183"]]
6820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6821
+  (0.0ms) SAVEPOINT active_record_1
6822
+  (0.0ms) SELECT MAX("first_items"."sort") FROM "first_items"
6823
+ SQL (0.1ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:06:24.203801"], ["updated_at", "2018-05-25 09:06:24.203801"]]
6824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6825
+  (0.1ms) SAVEPOINT active_record_1
6826
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
6827
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.212031"], ["updated_at", "2018-05-25 09:06:24.212031"]]
6828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6829
+  (0.0ms) SAVEPOINT active_record_1
6830
+  (0.0ms) SELECT MAX("second_items"."sort") FROM "second_items"
6831
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:06:24.213340"], ["updated_at", "2018-05-25 09:06:24.213340"]]
6832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6833
+ Processing by SortableController#reorder as HTML
6834
+ Parameters: {"rails_sortable"=>[{"id"=>"2", "klass"=>"SecondItem"}, {"id"=>"2", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"SecondItem"}]}
6835
+  (0.0ms) SAVEPOINT active_record_1
6836
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6837
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:06:24.215896"], ["id", 2]]
6838
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6839
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:06:24.216905"], ["id", 2]]
6840
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6841
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:06:24.218306"], ["id", 1]]
6842
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6843
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:06:24.220506"], ["id", 1]]
6844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6845
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
6846
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6847
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6848
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6849
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6850
+  (0.6ms) rollback transaction
6851
+  (0.0ms) begin transaction
6852
+  (0.0ms) SAVEPOINT active_record_1
6853
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-05-25 09:06:24.225505"], ["updated_at", "2018-05-25 09:06:24.225505"]]
6854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6855
+  (0.0ms) SAVEPOINT active_record_1
6856
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.226845"], ["updated_at", "2018-05-25 09:06:24.226845"]]
6857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6858
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6859
+  (1.0ms) rollback transaction
6860
+  (0.0ms) begin transaction
6861
+  (0.1ms) SAVEPOINT active_record_1
6862
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:06:24.238511"], ["updated_at", "2018-05-25 09:06:24.238511"]]
6863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6864
+  (0.6ms) rollback transaction
6865
+  (0.1ms) begin transaction
6866
+  (0.0ms) SAVEPOINT active_record_1
6867
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:06:24.241289"], ["updated_at", "2018-05-25 09:06:24.241289"]]
6868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6869
+  (0.0ms) SAVEPOINT active_record_1
6870
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6871
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-05-25 09:06:24.242425"], ["updated_at", "2018-05-25 09:06:24.242425"]]
6872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6873
+  (1.3ms) rollback transaction
6874
+  (0.1ms) begin transaction
6875
+  (0.1ms) SAVEPOINT active_record_1
6876
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6877
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.247704"], ["updated_at", "2018-05-25 09:06:24.247704"]]
6878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6879
+  (0.8ms) rollback transaction
6880
+  (0.0ms) begin transaction
6881
+  (0.1ms) SAVEPOINT active_record_1
6882
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6883
+ SQL (0.6ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.252076"], ["updated_at", "2018-05-25 09:06:24.252076"]]
6884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6885
+  (0.1ms) SAVEPOINT active_record_1
6886
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-05-25 09:06:24.257609"], ["id", 1]]
6887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6888
+  (1.4ms) rollback transaction
6889
+  (0.1ms) begin transaction
6890
+  (0.1ms) SAVEPOINT active_record_1
6891
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6892
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:06:24.261860"], ["updated_at", "2018-05-25 09:06:24.261860"]]
6893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6894
+  (0.0ms) SAVEPOINT active_record_1
6895
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6897
+  (0.7ms) rollback transaction
6898
+  (0.0ms) begin transaction
6899
+  (0.1ms) SAVEPOINT active_record_1
6900
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6901
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-05-25 09:06:24.271802"], ["updated_at", "2018-05-25 09:06:24.271802"]]
6902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6903
+  (1.3ms) rollback transaction
6904
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6905
+  (0.1ms) begin transaction
6906
+  (0.1ms) rollback transaction
6907
+  (0.1ms) begin transaction
6908
+  (0.0ms) SAVEPOINT active_record_1
6909
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6910
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:35.971109"], ["updated_at", "2018-05-25 09:07:35.971109"], ["sort", 1]]
6911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6912
+  (1.1ms) rollback transaction
6913
+  (0.0ms) begin transaction
6914
+  (0.0ms) SAVEPOINT active_record_1
6915
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:07:35.976363"], ["updated_at", "2018-05-25 09:07:35.976363"]]
6916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6917
+  (0.9ms) rollback transaction
6918
+  (0.0ms) begin transaction
6919
+  (0.0ms) SAVEPOINT active_record_1
6920
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:07:35.980837"], ["updated_at", "2018-05-25 09:07:35.980837"]]
6921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6922
+  (0.0ms) SAVEPOINT active_record_1
6923
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6924
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:35.982663"], ["updated_at", "2018-05-25 09:07:35.982663"], ["sort", 1001]]
6925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6926
+  (1.8ms) rollback transaction
6927
+  (0.1ms) begin transaction
6928
+  (0.1ms) SAVEPOINT active_record_1
6929
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-05-25 09:07:35.989249"], ["updated_at", "2018-05-25 09:07:35.989249"]]
6930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6931
+  (0.0ms) SAVEPOINT active_record_1
6932
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:35.991588"], ["updated_at", "2018-05-25 09:07:35.991588"]]
6933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6934
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6935
+  (1.5ms) rollback transaction
6936
+  (0.1ms) begin transaction
6937
+  (0.0ms) SAVEPOINT active_record_1
6938
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6939
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.000185"], ["updated_at", "2018-05-25 09:07:36.000185"], ["sort", 1]]
6940
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6941
+  (0.1ms) SAVEPOINT active_record_1
6942
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6944
+  (1.5ms) rollback transaction
6945
+  (0.0ms) begin transaction
6946
+  (0.0ms) SAVEPOINT active_record_1
6947
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6948
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.013811"], ["updated_at", "2018-05-25 09:07:36.013811"], ["sort", 1]]
6949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6950
+  (0.0ms) SAVEPOINT active_record_1
6951
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-05-25 09:07:36.016267"], ["id", 1]]
6952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6953
+  (0.6ms) rollback transaction
6954
+  (0.0ms) begin transaction
6955
+  (0.0ms) SAVEPOINT active_record_1
6956
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6957
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.021716"], ["updated_at", "2018-05-25 09:07:36.021716"], ["sequence", 1]]
6958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6959
+  (0.6ms) rollback transaction
6960
+  (0.0ms) begin transaction
6961
+  (0.0ms) SAVEPOINT active_record_1
6962
+  (0.3ms) SELECT MAX("items"."sort") FROM "items"
6963
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.025124"], ["updated_at", "2018-05-25 09:07:36.025124"], ["sort", 1]]
6964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6965
+  (1.0ms) rollback transaction
6966
+  (0.1ms) begin transaction
6967
+  (0.0ms) SAVEPOINT active_record_1
6968
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6969
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.030199"], ["updated_at", "2018-05-25 09:07:36.030199"], ["sort", 1]]
6970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6971
+  (0.0ms) SAVEPOINT active_record_1
6972
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6973
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.031560"], ["updated_at", "2018-05-25 09:07:36.031560"], ["sort", 2]]
6974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6975
+  (0.0ms) SAVEPOINT active_record_1
6976
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6977
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.032459"], ["updated_at", "2018-05-25 09:07:36.032459"], ["sort", 3]]
6978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6979
+ Processing by SortableController#reorder as HTML
6980
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"1"}, {"klass"=>"Item", "id"=>"3"}, {"klass"=>"Item", "id"=>"2"}]}
6981
+  (0.0ms) SAVEPOINT active_record_1
6982
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6983
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:07:36.036218"], ["id", 1]]
6984
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6985
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:07:36.037887"], ["id", 3]]
6986
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6988
+ Completed 200 OK in 5ms (ActiveRecord: 0.4ms)
6989
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6990
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6991
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6992
+  (0.8ms) rollback transaction
6993
+  (0.0ms) begin transaction
6994
+  (0.1ms) SAVEPOINT active_record_1
6995
+  (0.1ms) SELECT MAX("first_items"."sort") FROM "first_items"
6996
+ SQL (0.4ms) INSERT INTO "first_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.049838"], ["updated_at", "2018-05-25 09:07:36.049838"], ["sort", 1]]
6997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6998
+  (0.0ms) SAVEPOINT active_record_1
6999
+  (0.1ms) SELECT MAX("first_items"."sort") FROM "first_items"
7000
+ SQL (0.1ms) INSERT INTO "first_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.052764"], ["updated_at", "2018-05-25 09:07:36.052764"], ["sort", 2]]
7001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7002
+  (0.1ms) SAVEPOINT active_record_1
7003
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
7004
+ SQL (0.1ms) INSERT INTO "second_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.063016"], ["updated_at", "2018-05-25 09:07:36.063016"], ["sort", 1]]
7005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7006
+  (0.0ms) SAVEPOINT active_record_1
7007
+  (0.0ms) SELECT MAX("second_items"."sort") FROM "second_items"
7008
+ SQL (0.0ms) INSERT INTO "second_items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-05-25 09:07:36.064292"], ["updated_at", "2018-05-25 09:07:36.064292"], ["sort", 2]]
7009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7010
+ Processing by SortableController#reorder as HTML
7011
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"2"}, {"klass"=>"FirstItem", "id"=>"2"}, {"klass"=>"FirstItem", "id"=>"1"}, {"klass"=>"SecondItem", "id"=>"1"}]}
7012
+  (0.0ms) SAVEPOINT active_record_1
7013
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 2]]
7014
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:07:36.066352"], ["id", 2]]
7015
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 2]]
7016
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:07:36.067212"], ["id", 2]]
7017
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 1]]
7018
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:07:36.067939"], ["id", 1]]
7019
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 1]]
7020
+ SQL (0.0ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:07:36.068654"], ["id", 1]]
7021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7022
+ Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
7023
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 2]]
7024
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 2]]
7025
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT 1 [["id", 1]]
7026
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT 1 [["id", 1]]
7027
+  (0.9ms) rollback transaction
7028
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7029
+  (0.0ms) begin transaction
7030
+  (0.1ms) SAVEPOINT active_record_1
7031
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7032
+ SQL (0.6ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:37.979982"], ["updated_at", "2018-05-25 09:07:37.979982"]]
7033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7034
+  (0.8ms) rollback transaction
7035
+  (0.1ms) begin transaction
7036
+  (0.0ms) rollback transaction
7037
+  (0.0ms) begin transaction
7038
+  (0.0ms) SAVEPOINT active_record_1
7039
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-05-25 09:07:37.991423"], ["updated_at", "2018-05-25 09:07:37.991423"]]
7040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7041
+  (0.1ms) SAVEPOINT active_record_1
7042
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:37.992854"], ["updated_at", "2018-05-25 09:07:37.992854"]]
7043
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7044
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
7045
+  (1.2ms) rollback transaction
7046
+  (0.1ms) begin transaction
7047
+  (0.1ms) SAVEPOINT active_record_1
7048
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7049
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:38.002868"], ["updated_at", "2018-05-25 09:07:38.002868"]]
7050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7051
+  (1.1ms) rollback transaction
7052
+  (0.1ms) begin transaction
7053
+  (0.3ms) SAVEPOINT active_record_1
7054
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7055
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:38.008907"], ["updated_at", "2018-05-25 09:07:38.008907"]]
7056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7057
+  (0.1ms) SAVEPOINT active_record_1
7058
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
7059
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7060
+  (1.2ms) rollback transaction
7061
+  (0.0ms) begin transaction
7062
+  (0.1ms) SAVEPOINT active_record_1
7063
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7064
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:38.017796"], ["updated_at", "2018-05-25 09:07:38.017796"]]
7065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7066
+  (0.1ms) SAVEPOINT active_record_1
7067
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-05-25 09:07:38.020092"], ["id", 1]]
7068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7069
+  (1.8ms) rollback transaction
7070
+  (0.0ms) begin transaction
7071
+  (0.1ms) SAVEPOINT active_record_1
7072
+  (0.2ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
7073
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-05-25 09:07:38.030479"], ["updated_at", "2018-05-25 09:07:38.030479"]]
7074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7075
+  (0.7ms) rollback transaction
7076
+  (0.0ms) begin transaction
7077
+  (0.0ms) SAVEPOINT active_record_1
7078
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:07:38.035289"], ["updated_at", "2018-05-25 09:07:38.035289"]]
7079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7080
+  (0.0ms) SAVEPOINT active_record_1
7081
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
7082
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-05-25 09:07:38.036466"], ["updated_at", "2018-05-25 09:07:38.036466"]]
7083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7084
+  (0.6ms) rollback transaction
7085
+  (0.0ms) begin transaction
7086
+  (0.1ms) SAVEPOINT active_record_1
7087
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:07:38.039312"], ["updated_at", "2018-05-25 09:07:38.039312"]]
7088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7089
+  (0.6ms) rollback transaction
7090
+  (0.1ms) begin transaction
7091
+  (0.0ms) SAVEPOINT active_record_1
7092
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
7093
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:38.042849"], ["updated_at", "2018-05-25 09:07:38.042849"]]
7094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7095
+  (0.1ms) SAVEPOINT active_record_1
7096
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7097
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:07:38.045424"], ["updated_at", "2018-05-25 09:07:38.045424"]]
7098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7099
+  (0.1ms) SAVEPOINT active_record_1
7100
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7101
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-05-25 09:07:38.048590"], ["updated_at", "2018-05-25 09:07:38.048590"]]
7102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7103
+ Processing by SortableController#reorder as HTML
7104
+ Parameters: {"rails_sortable"=>[{"id"=>"1", "klass"=>"Item"}, {"id"=>"3", "klass"=>"Item"}, {"id"=>"2", "klass"=>"Item"}]}
7105
+  (0.1ms) SAVEPOINT active_record_1
7106
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7107
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:07:38.064437"], ["id", 1]]
7108
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
7109
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:07:38.066294"], ["id", 3]]
7110
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7112
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
7113
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7114
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7115
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
7116
+  (0.8ms) rollback transaction
7117
+  (0.0ms) begin transaction
7118
+  (0.1ms) SAVEPOINT active_record_1
7119
+  (0.1ms) SELECT MAX("first_items"."sort") FROM "first_items"
7120
+ SQL (0.4ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:38.076073"], ["updated_at", "2018-05-25 09:07:38.076073"]]
7121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7122
+  (0.1ms) SAVEPOINT active_record_1
7123
+  (0.0ms) SELECT MAX("first_items"."sort") FROM "first_items"
7124
+ SQL (0.1ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:07:38.078679"], ["updated_at", "2018-05-25 09:07:38.078679"]]
7125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7126
+  (0.0ms) SAVEPOINT active_record_1
7127
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
7128
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:38.084927"], ["updated_at", "2018-05-25 09:07:38.084927"]]
7129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7130
+  (0.0ms) SAVEPOINT active_record_1
7131
+  (0.0ms) SELECT MAX("second_items"."sort") FROM "second_items"
7132
+ SQL (0.0ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:07:38.086223"], ["updated_at", "2018-05-25 09:07:38.086223"]]
7133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7134
+ Processing by SortableController#reorder as HTML
7135
+ Parameters: {"rails_sortable"=>[{"id"=>"2", "klass"=>"SecondItem"}, {"id"=>"2", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"SecondItem"}]}
7136
+  (0.0ms) SAVEPOINT active_record_1
7137
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7138
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:07:38.088843"], ["id", 2]]
7139
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7140
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:07:38.090463"], ["id", 2]]
7141
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7142
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:07:38.091473"], ["id", 1]]
7143
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7144
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:07:38.092617"], ["id", 1]]
7145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7146
+ Completed 200 OK in 6ms (ActiveRecord: 0.5ms)
7147
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7148
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7149
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7150
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7151
+  (0.7ms) rollback transaction
7152
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7153
+  (0.1ms) begin transaction
7154
+  (0.1ms) SAVEPOINT active_record_1
7155
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7156
+ SQL (0.7ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.019935"], ["updated_at", "2018-05-25 09:07:40.019935"]]
7157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7158
+  (0.8ms) rollback transaction
7159
+  (0.0ms) begin transaction
7160
+  (0.1ms) SAVEPOINT active_record_1
7161
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
7162
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", "2018-05-25 09:07:40.031792"], ["updated_at", "2018-05-25 09:07:40.031792"]]
7163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7164
+  (0.6ms) rollback transaction
7165
+  (0.0ms) begin transaction
7166
+  (0.0ms) SAVEPOINT active_record_1
7167
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7168
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.035657"], ["updated_at", "2018-05-25 09:07:40.035657"]]
7169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7170
+  (0.0ms) SAVEPOINT active_record_1
7171
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-05-25 09:07:40.038726"], ["id", 1]]
7172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7173
+  (0.7ms) rollback transaction
7174
+  (0.1ms) begin transaction
7175
+  (0.1ms) SAVEPOINT active_record_1
7176
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7177
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.042239"], ["updated_at", "2018-05-25 09:07:40.042239"]]
7178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7179
+  (0.0ms) SAVEPOINT active_record_1
7180
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
7181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7182
+  (1.3ms) rollback transaction
7183
+  (0.1ms) begin transaction
7184
+  (0.0ms) SAVEPOINT active_record_1
7185
+ SQL (0.7ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-05-25 09:07:40.048043"], ["updated_at", "2018-05-25 09:07:40.048043"]]
7186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7187
+  (0.0ms) SAVEPOINT active_record_1
7188
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.050141"], ["updated_at", "2018-05-25 09:07:40.050141"]]
7189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7190
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
7191
+  (0.7ms) rollback transaction
7192
+  (0.1ms) begin transaction
7193
+  (0.0ms) SAVEPOINT active_record_1
7194
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:07:40.055980"], ["updated_at", "2018-05-25 09:07:40.055980"]]
7195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7196
+  (0.0ms) SAVEPOINT active_record_1
7197
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7198
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", "2018-05-25 09:07:40.057263"], ["updated_at", "2018-05-25 09:07:40.057263"]]
7199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7200
+  (0.7ms) rollback transaction
7201
+  (0.0ms) begin transaction
7202
+  (0.0ms) SAVEPOINT active_record_1
7203
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-05-25 09:07:40.060926"], ["updated_at", "2018-05-25 09:07:40.060926"]]
7204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7205
+  (0.7ms) rollback transaction
7206
+  (0.1ms) begin transaction
7207
+  (0.0ms) rollback transaction
7208
+  (0.0ms) begin transaction
7209
+  (0.0ms) SAVEPOINT active_record_1
7210
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7211
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.072217"], ["updated_at", "2018-05-25 09:07:40.072217"]]
7212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7213
+  (1.0ms) rollback transaction
7214
+  (0.0ms) begin transaction
7215
+  (0.0ms) SAVEPOINT active_record_1
7216
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7217
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.076681"], ["updated_at", "2018-05-25 09:07:40.076681"]]
7218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7219
+  (0.0ms) SAVEPOINT active_record_1
7220
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
7221
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:07:40.078454"], ["updated_at", "2018-05-25 09:07:40.078454"]]
7222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7223
+  (0.1ms) SAVEPOINT active_record_1
7224
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
7225
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", "2018-05-25 09:07:40.080854"], ["updated_at", "2018-05-25 09:07:40.080854"]]
7226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7227
+ Processing by SortableController#reorder as HTML
7228
+ Parameters: {"rails_sortable"=>[{"id"=>"1", "klass"=>"Item"}, {"id"=>"3", "klass"=>"Item"}, {"id"=>"2", "klass"=>"Item"}]}
7229
+  (0.1ms) SAVEPOINT active_record_1
7230
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7231
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 0], ["id", 1]]
7232
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
7233
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1], ["id", 3]]
7234
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7236
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
7237
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7238
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7239
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
7240
+  (0.8ms) rollback transaction
7241
+  (0.1ms) begin transaction
7242
+  (0.1ms) SAVEPOINT active_record_1
7243
+  (0.1ms) SELECT MAX("first_items"."sort") FROM "first_items"
7244
+ SQL (0.4ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.108860"], ["updated_at", "2018-05-25 09:07:40.108860"]]
7245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7246
+  (0.1ms) SAVEPOINT active_record_1
7247
+  (0.0ms) SELECT MAX("first_items"."sort") FROM "first_items"
7248
+ SQL (0.1ms) INSERT INTO "first_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:07:40.111444"], ["updated_at", "2018-05-25 09:07:40.111444"]]
7249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7250
+  (0.1ms) SAVEPOINT active_record_1
7251
+  (0.1ms) SELECT MAX("second_items"."sort") FROM "second_items"
7252
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", "2018-05-25 09:07:40.118695"], ["updated_at", "2018-05-25 09:07:40.118695"]]
7253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7254
+  (0.0ms) SAVEPOINT active_record_1
7255
+  (0.0ms) SELECT MAX("second_items"."sort") FROM "second_items"
7256
+ SQL (0.1ms) INSERT INTO "second_items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", "2018-05-25 09:07:40.120029"], ["updated_at", "2018-05-25 09:07:40.120029"]]
7257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7258
+ Processing by SortableController#reorder as HTML
7259
+ Parameters: {"rails_sortable"=>[{"id"=>"2", "klass"=>"SecondItem"}, {"id"=>"2", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"FirstItem"}, {"id"=>"1", "klass"=>"SecondItem"}]}
7260
+  (0.1ms) SAVEPOINT active_record_1
7261
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7262
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-05-25 09:07:40.122702"], ["id", 2]]
7263
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7264
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-05-25 09:07:40.124021"], ["id", 2]]
7265
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7266
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-05-25 09:07:40.125514"], ["id", 1]]
7267
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7268
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-05-25 09:07:40.126700"], ["id", 1]]
7269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7270
+ Completed 200 OK in 6ms (ActiveRecord: 0.6ms)
7271
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7272
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
7273
+ FirstItem Load (0.0ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7274
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
7275
+  (0.6ms) rollback transaction