rails_sortable 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 123f9e7b55ec554cc76d3e2f1a4aa038d6ce3b9e
4
- data.tar.gz: 5f2fc12ecb38d567cfca862e88d0d0f7c92ba8cc
3
+ metadata.gz: f71d0f09c228e23feab8feb87bdfb86ef381ab87
4
+ data.tar.gz: 60cb4a0ac744d60116e3315b7ed2f443d995bd62
5
5
  SHA512:
6
- metadata.gz: f39a1c9f794b4b5dd0266c3ab335f082eadec2b7c0f5b14c7a3ead1235e8b3df9fbbcc01072631aa89a46b9c3f82627fb7e39b79ee509735b6d9a804222d20ff
7
- data.tar.gz: 0d6a7d0802bac67389ebff215093afe43c9cd2b23594bf59b045587395053716a43aef7d5e7683a00305e5e8cfc1c4b21a9aaba5630c290cf804f501e036f8dc
6
+ metadata.gz: 51c26d72c68ecda96ef5f4100f7b809404d1eb95b61467b556155e8742040c5e4d611a039676b9c744d46b5a82c7bb328e24990369fcb8368f93c72e55993839
7
+ data.tar.gz: bb71c5d7176570a81c7f91e4ad886fb3e025a3b456ad75bef7b22268f2cbc4ec1a5702d2945e8b52c033ed16a78c33bd02db532690d3a4203a1577c9af515bc8
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -6094,3 +6094,353 @@ Completed 200 OK in 7ms (ActiveRecord: 0.5ms)
6094
6094
   (0.1ms) rollback transaction
6095
6095
   (0.1ms) begin transaction
6096
6096
   (0.1ms) rollback transaction
6097
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
6098
+  (0.1ms) begin transaction
6099
+  (0.1ms) SAVEPOINT active_record_1
6100
+  (0.5ms) SELECT MAX("items"."sort") FROM "items"
6101
+ SQL (0.7ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.626170"], ["updated_at", "2017-04-14 07:19:42.626170"], ["sort", 1]]
6102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6103
+  (0.0ms) SAVEPOINT active_record_1
6104
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2017-04-14 07:19:42.631877"], ["id", 1]]
6105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6106
+  (0.6ms) rollback transaction
6107
+  (0.1ms) begin transaction
6108
+  (0.0ms) SAVEPOINT active_record_1
6109
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6110
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.642018"], ["updated_at", "2017-04-14 07:19:42.642018"], ["sort", 1]]
6111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6112
+  (0.0ms) SAVEPOINT active_record_1
6113
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6115
+  (0.4ms) rollback transaction
6116
+  (0.1ms) begin transaction
6117
+  (0.1ms) SAVEPOINT active_record_1
6118
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6119
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.655793"], ["updated_at", "2017-04-14 07:19:42.655793"], ["sequence", 1]]
6120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6121
+  (0.5ms) rollback transaction
6122
+  (0.1ms) begin transaction
6123
+  (0.0ms) SAVEPOINT active_record_1
6124
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2017-04-14 07:19:42.663546"], ["updated_at", "2017-04-14 07:19:42.663546"]]
6125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6126
+  (0.4ms) rollback transaction
6127
+  (0.1ms) begin transaction
6128
+  (0.0ms) SAVEPOINT active_record_1
6129
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2017-04-14 07:19:42.670033"], ["updated_at", "2017-04-14 07:19:42.670033"]]
6130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6131
+  (0.0ms) SAVEPOINT active_record_1
6132
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6133
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.671691"], ["updated_at", "2017-04-14 07:19:42.671691"], ["sort", 1001]]
6134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6135
+  (0.4ms) rollback transaction
6136
+  (0.1ms) begin transaction
6137
+  (0.1ms) rollback transaction
6138
+  (0.1ms) begin transaction
6139
+  (0.0ms) rollback transaction
6140
+  (0.0ms) begin transaction
6141
+  (0.0ms) SAVEPOINT active_record_1
6142
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6143
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.698616"], ["updated_at", "2017-04-14 07:19:42.698616"], ["sort", 1]]
6144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6145
+  (0.0ms) SAVEPOINT active_record_1
6146
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6147
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.700921"], ["updated_at", "2017-04-14 07:19:42.700921"], ["sort", 2]]
6148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6149
+  (0.0ms) SAVEPOINT active_record_1
6150
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6151
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:19:42.702958"], ["updated_at", "2017-04-14 07:19:42.702958"], ["sort", 3]]
6152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6153
+ Processing by SortableController#reorder as HTML
6154
+ Parameters: {"Item"=>["1", "3", "2"]}
6155
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6156
+  (0.0ms) SAVEPOINT active_record_1
6157
+ SQL (0.0ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 0], ["id", 1]]
6158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6159
+  (0.0ms) SAVEPOINT active_record_1
6160
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1], ["id", 3]]
6161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6162
+ Completed 200 OK in 7ms (ActiveRecord: 0.4ms)
6163
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6164
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6165
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6166
+  (0.6ms) rollback transaction
6167
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
6168
+  (0.1ms) begin transaction
6169
+  (0.1ms) rollback transaction
6170
+  (0.1ms) begin transaction
6171
+  (0.1ms) rollback transaction
6172
+  (0.1ms) begin transaction
6173
+  (0.0ms) SAVEPOINT active_record_1
6174
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6175
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6177
+  (0.0ms) SAVEPOINT active_record_1
6178
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6179
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6181
+  (0.1ms) SAVEPOINT active_record_1
6182
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6183
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6185
+ Processing by SortableController#reorder as HTML
6186
+ Parameters: {"Item"=>["1", "3", "2"]}
6187
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6188
+  (0.0ms) SAVEPOINT active_record_1
6189
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", 2017-04-14 07:19:45 UTC], ["id", 1]]
6190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6191
+  (0.1ms) SAVEPOINT active_record_1
6192
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", 2017-04-14 07:19:45 UTC], ["id", 3]]
6193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6194
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
6195
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6196
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6197
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
6198
+  (0.5ms) rollback transaction
6199
+  (0.1ms) begin transaction
6200
+  (0.0ms) SAVEPOINT active_record_1
6201
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6203
+  (0.0ms) SAVEPOINT active_record_1
6204
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6205
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6207
+  (0.4ms) rollback transaction
6208
+  (0.1ms) begin transaction
6209
+  (0.1ms) SAVEPOINT active_record_1
6210
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6212
+  (0.4ms) rollback transaction
6213
+  (0.1ms) begin transaction
6214
+  (0.1ms) SAVEPOINT active_record_1
6215
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6216
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6218
+  (0.4ms) rollback transaction
6219
+  (0.1ms) begin transaction
6220
+  (0.1ms) SAVEPOINT active_record_1
6221
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6222
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6224
+  (0.1ms) SAVEPOINT active_record_1
6225
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", 2017-04-14 07:19:45 UTC], ["id", 1]]
6226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6227
+  (0.5ms) rollback transaction
6228
+  (0.1ms) begin transaction
6229
+  (0.0ms) SAVEPOINT active_record_1
6230
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6231
+ SQL (0.2ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", 2017-04-14 07:19:45 UTC], ["updated_at", 2017-04-14 07:19:45 UTC]]
6232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6233
+  (0.0ms) SAVEPOINT active_record_1
6234
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6236
+  (0.5ms) rollback transaction
6237
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
6238
+  (0.1ms) begin transaction
6239
+  (0.1ms) rollback transaction
6240
+  (0.1ms) begin transaction
6241
+  (0.1ms) rollback transaction
6242
+  (0.1ms) begin transaction
6243
+  (0.0ms) SAVEPOINT active_record_1
6244
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2017-04-14 07:20:23.936354"], ["updated_at", "2017-04-14 07:20:23.936354"]]
6245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6246
+  (1.5ms) rollback transaction
6247
+  (0.1ms) begin transaction
6248
+  (0.0ms) SAVEPOINT active_record_1
6249
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2017-04-14 07:20:23.943931"], ["updated_at", "2017-04-14 07:20:23.943931"]]
6250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6251
+  (0.0ms) SAVEPOINT active_record_1
6252
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6253
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.945498"], ["updated_at", "2017-04-14 07:20:23.945498"], ["sort", 1001]]
6254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6255
+  (0.5ms) rollback transaction
6256
+  (0.1ms) begin transaction
6257
+  (0.0ms) SAVEPOINT active_record_1
6258
+  (0.3ms) SELECT MAX("items"."sort") FROM "items"
6259
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.953168"], ["updated_at", "2017-04-14 07:20:23.953168"], ["sort", 1]]
6260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6261
+  (0.1ms) SAVEPOINT active_record_1
6262
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6264
+  (0.4ms) rollback transaction
6265
+  (0.1ms) begin transaction
6266
+  (0.0ms) SAVEPOINT active_record_1
6267
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6268
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.967801"], ["updated_at", "2017-04-14 07:20:23.967801"], ["sort", 1]]
6269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6270
+  (0.0ms) SAVEPOINT active_record_1
6271
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2017-04-14 07:20:23.969659"], ["id", 1]]
6272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6273
+  (0.6ms) rollback transaction
6274
+  (0.1ms) begin transaction
6275
+  (0.1ms) SAVEPOINT active_record_1
6276
+  (0.2ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6277
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.981675"], ["updated_at", "2017-04-14 07:20:23.981675"], ["sequence", 1]]
6278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6279
+  (0.4ms) rollback transaction
6280
+  (0.1ms) begin transaction
6281
+  (0.0ms) SAVEPOINT active_record_1
6282
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6283
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.990048"], ["updated_at", "2017-04-14 07:20:23.990048"], ["sort", 1]]
6284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6285
+  (0.1ms) SAVEPOINT active_record_1
6286
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6287
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.993642"], ["updated_at", "2017-04-14 07:20:23.993642"], ["sort", 2]]
6288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6289
+  (0.0ms) SAVEPOINT active_record_1
6290
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6291
+ SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:23.995743"], ["updated_at", "2017-04-14 07:20:23.995743"], ["sort", 3]]
6292
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6293
+ Processing by SortableController#reorder as HTML
6294
+ Parameters: {"Item"=>["1", "3", "2"]}
6295
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6296
+  (0.0ms) SAVEPOINT active_record_1
6297
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2017-04-14 07:20:24.000956"], ["id", 1]]
6298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6299
+  (0.0ms) SAVEPOINT active_record_1
6300
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2017-04-14 07:20:24.002024"], ["id", 3]]
6301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6302
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
6303
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6304
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6305
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6306
+  (0.5ms) rollback transaction
6307
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6308
+  (0.1ms) begin transaction
6309
+  (0.1ms) SAVEPOINT active_record_1
6310
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6311
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.513484"], ["updated_at", "2017-04-14 07:20:39.513484"], ["sort", 1]]
6312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6313
+  (0.0ms) SAVEPOINT active_record_1
6314
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6315
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.516855"], ["updated_at", "2017-04-14 07:20:39.516855"], ["sort", 2]]
6316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6317
+  (0.1ms) SAVEPOINT active_record_1
6318
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6319
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.519141"], ["updated_at", "2017-04-14 07:20:39.519141"], ["sort", 3]]
6320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6321
+ Processing by SortableController#reorder as HTML
6322
+ Parameters: {"Item"=>["1", "3", "2"]}
6323
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6324
+  (0.1ms) SAVEPOINT active_record_1
6325
+ SQL (0.5ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2017-04-14 07:20:39.530336"], ["id", 1]]
6326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6327
+  (0.1ms) SAVEPOINT active_record_1
6328
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2017-04-14 07:20:39.539304"], ["id", 3]]
6329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6330
+ Completed 200 OK in 12ms (ActiveRecord: 1.0ms)
6331
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
6332
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
6333
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
6334
+  (1.8ms) rollback transaction
6335
+  (0.1ms) begin transaction
6336
+  (0.1ms) rollback transaction
6337
+  (0.1ms) begin transaction
6338
+  (0.1ms) rollback transaction
6339
+  (0.1ms) begin transaction
6340
+  (0.0ms) SAVEPOINT active_record_1
6341
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2017-04-14 07:20:39.565478"], ["updated_at", "2017-04-14 07:20:39.565478"]]
6342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6343
+  (0.1ms) SAVEPOINT active_record_1
6344
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6345
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.568930"], ["updated_at", "2017-04-14 07:20:39.568930"], ["sort", 1001]]
6346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6347
+  (0.4ms) rollback transaction
6348
+  (0.1ms) begin transaction
6349
+  (0.1ms) SAVEPOINT active_record_1
6350
+ SQL (0.6ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2017-04-14 07:20:39.577296"], ["updated_at", "2017-04-14 07:20:39.577296"]]
6351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6352
+  (0.6ms) rollback transaction
6353
+  (0.1ms) begin transaction
6354
+  (0.1ms) SAVEPOINT active_record_1
6355
+  (0.2ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6356
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.593897"], ["updated_at", "2017-04-14 07:20:39.593897"], ["sequence", 1]]
6357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6358
+  (0.4ms) rollback transaction
6359
+  (0.2ms) begin transaction
6360
+  (0.1ms) SAVEPOINT active_record_1
6361
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6362
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.604337"], ["updated_at", "2017-04-14 07:20:39.604337"], ["sort", 1]]
6363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6364
+  (0.1ms) SAVEPOINT active_record_1
6365
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6367
+  (0.5ms) rollback transaction
6368
+  (0.1ms) begin transaction
6369
+  (0.1ms) SAVEPOINT active_record_1
6370
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6371
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2017-04-14 07:20:39.623975"], ["updated_at", "2017-04-14 07:20:39.623975"], ["sort", 1]]
6372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6373
+  (0.0ms) SAVEPOINT active_record_1
6374
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2017-04-14 07:20:39.626902"], ["id", 1]]
6375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6376
+  (0.4ms) rollback transaction
6377
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6378
+  (0.1ms) begin transaction
6379
+  (0.1ms) rollback transaction
6380
+  (0.1ms) begin transaction
6381
+  (0.1ms) rollback transaction
6382
+  (0.1ms) begin transaction
6383
+  (0.1ms) SAVEPOINT active_record_1
6384
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6385
+ SQL (0.4ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6387
+  (0.0ms) SAVEPOINT active_record_1
6388
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6389
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 2], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6391
+  (0.0ms) SAVEPOINT active_record_1
6392
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6393
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 3], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6395
+ Processing by SortableController#reorder as HTML
6396
+ Parameters: {"Item"=>["1", "3", "2"]}
6397
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
6398
+  (0.0ms) SAVEPOINT active_record_1
6399
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", 2017-04-14 07:20:42 UTC], ["id", 1]]
6400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6401
+  (0.0ms) SAVEPOINT active_record_1
6402
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", 2017-04-14 07:20:42 UTC], ["id", 3]]
6403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6404
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
6405
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
6406
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
6407
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 3], ["LIMIT", 1]]
6408
+  (2.3ms) rollback transaction
6409
+  (0.1ms) begin transaction
6410
+  (0.0ms) SAVEPOINT active_record_1
6411
+ SQL (0.5ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6413
+  (0.5ms) rollback transaction
6414
+  (0.1ms) begin transaction
6415
+  (0.0ms) SAVEPOINT active_record_1
6416
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6418
+  (0.0ms) SAVEPOINT active_record_1
6419
+  (0.0ms) SELECT MAX("items"."sort") FROM "items"
6420
+ SQL (0.1ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1001], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6422
+  (0.4ms) rollback transaction
6423
+  (0.1ms) begin transaction
6424
+  (0.1ms) SAVEPOINT active_record_1
6425
+  (0.1ms) SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
6426
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?) [["sequence", 1], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6428
+  (0.4ms) rollback transaction
6429
+  (0.1ms) begin transaction
6430
+  (0.0ms) SAVEPOINT active_record_1
6431
+  (0.2ms) SELECT MAX("items"."sort") FROM "items"
6432
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6434
+  (0.0ms) SAVEPOINT active_record_1
6435
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
6436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6437
+  (0.4ms) rollback transaction
6438
+  (0.1ms) begin transaction
6439
+  (0.0ms) SAVEPOINT active_record_1
6440
+  (0.1ms) SELECT MAX("items"."sort") FROM "items"
6441
+ SQL (0.3ms) INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1], ["created_at", 2017-04-14 07:20:42 UTC], ["updated_at", 2017-04-14 07:20:42 UTC]]
6442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6443
+  (0.0ms) SAVEPOINT active_record_1
6444
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", 2017-04-14 07:20:42 UTC], ["id", 1]]
6445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6446
+  (0.5ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - itmammoth
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.4'
111
- description: rails_sortable provides easy drag & drop sorting for rails AR models.
111
+ description: rails_sortable provides easy drag & drop sorting for rails 4 and 5.
112
112
  email:
113
113
  - itmammoth@gmail.com
114
114
  executables: []