activeadmin_draggable 0.0.5 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +1 -0
  3. data/README.rdoc +122 -0
  4. data/Rakefile +38 -1
  5. data/activeadmin_draggable.gemspec +8 -0
  6. data/lib/activeadmin_draggable.rb +1 -1
  7. data/lib/activeadmin_draggable/engine.rb +4 -1
  8. data/lib/activeadmin_draggable/sortable_tree.rb +2 -0
  9. data/lib/activeadmin_draggable/version.rb +1 -1
  10. data/test/dummy/README.rdoc +261 -0
  11. data/test/dummy/Rakefile +7 -0
  12. data/test/dummy/app/assets/javascripts/application.js +15 -0
  13. data/test/dummy/app/assets/stylesheets/active_admin.css.scss +29 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  15. data/test/dummy/app/controllers/application_controller.rb +3 -0
  16. data/test/dummy/app/helpers/application_helper.rb +2 -0
  17. data/test/dummy/app/mailers/.gitkeep +0 -0
  18. data/test/dummy/app/models/.gitkeep +0 -0
  19. data/test/dummy/app/models/item.rb +8 -0
  20. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/test/dummy/config.ru +4 -0
  22. data/test/dummy/config/application.rb +59 -0
  23. data/test/dummy/config/boot.rb +10 -0
  24. data/test/dummy/config/database.yml +25 -0
  25. data/test/dummy/config/environment.rb +5 -0
  26. data/test/dummy/config/environments/development.rb +37 -0
  27. data/test/dummy/config/environments/production.rb +67 -0
  28. data/test/dummy/config/environments/test.rb +37 -0
  29. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test/dummy/config/initializers/inflections.rb +15 -0
  31. data/test/dummy/config/initializers/mime_types.rb +5 -0
  32. data/test/dummy/config/initializers/secret_token.rb +7 -0
  33. data/test/dummy/config/initializers/session_store.rb +8 -0
  34. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  35. data/test/dummy/config/locales/en.yml +5 -0
  36. data/test/dummy/config/routes.rb +59 -0
  37. data/test/dummy/db/development.sqlite3 +0 -0
  38. data/test/dummy/db/migrate/20130513093153_create_items.rb +10 -0
  39. data/test/dummy/db/schema.rb +23 -0
  40. data/test/dummy/db/test.sqlite3 +0 -0
  41. data/test/dummy/lib/assets/.gitkeep +0 -0
  42. data/test/dummy/log/.gitkeep +0 -0
  43. data/test/dummy/log/development.log +46 -0
  44. data/test/dummy/log/test.log +368 -0
  45. data/test/dummy/public/404.html +26 -0
  46. data/test/dummy/public/422.html +26 -0
  47. data/test/dummy/public/500.html +25 -0
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/script/rails +6 -0
  50. data/test/dummy/test/fixtures/items.yml +9 -0
  51. data/test/dummy/test/unit/item_test.rb +7 -0
  52. data/test/integration/activeadmin_draggable_test.rb +16 -0
  53. data/test/test_helper.rb +23 -0
  54. data/test/unit/draggable_list_item_test.rb +24 -0
  55. data/{app/assets/images/activeadmin_draggable → vendor/assets/images}/indicator.gif +0 -0
  56. data/{app/assets/javascripts/activeadmin_draggable → vendor/assets/javascripts}/activeadmin_draggable.js +4 -2
  57. data/{app/assets/javascripts/activeadmin_draggable → vendor/assets/javascripts}/jquery.table_tree.js +3 -1
  58. data/{app/assets/javascripts/activeadmin_draggable → vendor/assets/javascripts}/jquery.tablednd_0_5.js +1 -0
  59. metadata +244 -76
  60. data/README.md +0 -29
@@ -0,0 +1,10 @@
1
+ class CreateItems < ActiveRecord::Migration
2
+ def change
3
+ create_table :items do |t|
4
+ t.string :name
5
+ t.integer :position
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130513093153) do
15
+
16
+ create_table "items", :force => true do |t|
17
+ t.string "name"
18
+ t.integer "position"
19
+ t.datetime "created_at", :null => false
20
+ t.datetime "updated_at", :null => false
21
+ end
22
+
23
+ end
File without changes
File without changes
@@ -0,0 +1,46 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+  (0.1ms) select sqlite_version(*)
5
+  (357.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
+  (266.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+ Interrupt: : CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
+ Connecting to database specified by database.yml
9
+ Connecting to database specified by database.yml
10
+ Connecting to database specified by database.yml
11
+  (95.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
12
+ Connecting to database specified by database.yml
13
+  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
14
+ Connecting to database specified by database.yml
15
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
16
+ Migrating to CreateItems (20130513093153)
17
+  (0.0ms) select sqlite_version(*)
18
+  (0.0ms) begin transaction
19
+  (0.4ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130513093153')
21
+  (321.3ms) commit transaction
22
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
23
+ Connecting to database specified by database.yml
24
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
25
+  (0.2ms) select sqlite_version(*)
26
+  (290.7ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
27
+  (270.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
28
+  (284.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
29
+  (0.2ms) SELECT version FROM "schema_migrations"
30
+  (303.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130513093153')
31
+ Connecting to database specified by database.yml
32
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
33
+  (0.2ms) select sqlite_version(*)
34
+  (297.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
35
+  (286.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
36
+  (278.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37
+  (0.2ms) SELECT version FROM "schema_migrations"
38
+  (287.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130513093153')
39
+ Connecting to database specified by database.yml
40
+  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
41
+  (0.2ms) select sqlite_version(*)
42
+  (326.7ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
43
+  (273.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
44
+  (287.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
45
+  (0.1ms) SELECT version FROM "schema_migrations"
46
+  (295.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130513093153')
@@ -0,0 +1,368 @@
1
+ Connecting to database specified by database.yml
2
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 11:38:49 +0200
3
+ Served asset /activeadmin_draggable.js - 404 Not Found (4ms)
4
+ Connecting to database specified by database.yml
5
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 12:06:56 +0200
6
+ Served asset /activeadmin_draggable.js - 404 Not Found (3ms)
7
+ Connecting to database specified by database.yml
8
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 12:36:35 +0200
9
+ Compiled jquery.js (1ms) (pid 11956)
10
+ Compiled jquery.table_tree.js (0ms) (pid 11956)
11
+ Compiled jquery.tablednd_0_5.js (0ms) (pid 11956)
12
+ Compiled activeadmin_draggable.js (41ms) (pid 11956)
13
+ Served asset /activeadmin_draggable.js - 200 OK (52ms)
14
+ Connecting to database specified by database.yml
15
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 12:37:28 +0200
16
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
17
+ Connecting to database specified by database.yml
18
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 14:12:16 +0200
19
+ Served asset /activeadmin_draggable.js - 200 OK (8ms)
20
+ Started GET "/admin" for 127.0.0.1 at 2013-05-10 14:12:16 +0200
21
+ Connecting to database specified by database.yml
22
+ Connecting to database specified by database.yml
23
+ Connecting to database specified by database.yml
24
+ Connecting to database specified by database.yml
25
+ Connecting to database specified by database.yml
26
+ Connecting to database specified by database.yml
27
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 14:47:30 +0200
28
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
29
+ Connecting to database specified by database.yml
30
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 14:54:49 +0200
31
+ Compiled jquery.table_tree.js (0ms) (pid 15367)
32
+ Compiled jquery.tablednd_0_5.js (0ms) (pid 15367)
33
+ Compiled activeadmin_draggable.js (3ms) (pid 15367)
34
+ Served asset /activeadmin_draggable.js - 200 OK (17ms)
35
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-10 14:54:49 +0200
36
+ Served asset /jquery.tablednd_0_5.js - 200 OK (4ms)
37
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-10 14:54:49 +0200
38
+ Served asset /jquery.table_tree.js - 200 OK (4ms)
39
+ Connecting to database specified by database.yml
40
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 14:55:45 +0200
41
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
42
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-10 14:55:45 +0200
43
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
44
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-10 14:55:45 +0200
45
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
46
+ Connecting to database specified by database.yml
47
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-10 14:56:39 +0200
48
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
49
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-10 14:56:39 +0200
50
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
51
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-10 14:56:39 +0200
52
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
53
+ Connecting to database specified by database.yml
54
+ Connecting to database specified by database.yml
55
+ Connecting to database specified by database.yml
56
+ Connecting to database specified by database.yml
57
+ Connecting to database specified by database.yml
58
+ Connecting to database specified by database.yml
59
+ Connecting to database specified by database.yml
60
+ Connecting to database specified by database.yml
61
+ Connecting to database specified by database.yml
62
+ Connecting to database specified by database.yml
63
+ Connecting to database specified by database.yml
64
+ Connecting to database specified by database.yml
65
+ Connecting to database specified by database.yml
66
+ Connecting to database specified by database.yml
67
+ Connecting to database specified by database.yml
68
+ Connecting to database specified by database.yml
69
+ Connecting to database specified by database.yml
70
+ Connecting to database specified by database.yml
71
+ Connecting to database specified by database.yml
72
+ Connecting to database specified by database.yml
73
+ Connecting to database specified by database.yml
74
+ Connecting to database specified by database.yml
75
+ Connecting to database specified by database.yml
76
+ Connecting to database specified by database.yml
77
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 10:49:21 +0200
78
+ Served asset /activeadmin_draggable.js - 200 OK (135ms)
79
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 10:49:21 +0200
80
+ Served asset /jquery.tablednd_0_5.js - 200 OK (14ms)
81
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 10:49:21 +0200
82
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
83
+ Connecting to database specified by database.yml
84
+ Connecting to database specified by database.yml
85
+ Connecting to database specified by database.yml
86
+ Connecting to database specified by database.yml
87
+ Connecting to database specified by database.yml
88
+  (0.0ms) begin transaction
89
+ SQL (32.3ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 09:35:51 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 09:35:51 UTC +00:00]]
90
+  (298.7ms) commit transaction
91
+ Connecting to database specified by database.yml
92
+ Connecting to database specified by database.yml
93
+ Connecting to database specified by database.yml
94
+  (0.0ms) begin transaction
95
+ SQL (1.6ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
96
+ SQL (24.7ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 09:38:57 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 09:38:57 UTC +00:00]]
97
+  (383.2ms) commit transaction
98
+ Connecting to database specified by database.yml
99
+  (0.1ms) begin transaction
100
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
101
+ SQL (27.0ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 09:39:20 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 09:39:20 UTC +00:00]]
102
+  (317.0ms) commit transaction
103
+ Connecting to database specified by database.yml
104
+  (0.1ms) begin transaction
105
+ SQL (1.9ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
106
+ SQL (27.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 09:43:41 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 09:43:41 UTC +00:00]]
107
+  (288.5ms) commit transaction
108
+  (0.5ms) begin transaction
109
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
110
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 09:43:41 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 09:43:41 UTC +00:00]]
111
+  (288.5ms) commit transaction
112
+ Connecting to database specified by database.yml
113
+  (0.0ms) begin transaction
114
+ SQL (1.8ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
115
+ SQL (228.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:07:17 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:07:17 UTC +00:00]]
116
+  (370.9ms) commit transaction
117
+  (0.1ms) begin transaction
118
+ SQL (0.3ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
119
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:07:18 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:07:18 UTC +00:00]]
120
+  (404.0ms) commit transaction
121
+ Connecting to database specified by database.yml
122
+ Connecting to database specified by database.yml
123
+  (0.0ms) begin transaction
124
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
125
+ SQL (25.1ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:09:32 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:09:32 UTC +00:00]]
126
+  (299.9ms) commit transaction
127
+  (0.1ms) begin transaction
128
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
129
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:09:32 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:09:32 UTC +00:00]]
130
+  (266.6ms) commit transaction
131
+ Connecting to database specified by database.yml
132
+  (0.0ms) begin transaction
133
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
134
+ SQL (24.2ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:12:15 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:12:15 UTC +00:00]]
135
+  (375.6ms) commit transaction
136
+  (0.2ms) begin transaction
137
+ SQL (0.6ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
138
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:12:15 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:12:15 UTC +00:00]]
139
+  (273.1ms) commit transaction
140
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 11]]
141
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 10]]
142
+ SQL (288.9ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1 AND position < 2)
143
+  (0.2ms) begin transaction
144
+  (0.5ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:12:16.113050' WHERE "items"."id" = 11
145
+  (0.2ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
146
+  (267.5ms) commit transaction
147
+  (0.2ms) begin transaction
148
+  (0.5ms) UPDATE "items" SET "position" = 2, "updated_at" = '2013-05-13 11:12:16.387844' WHERE "items"."id" = 11
149
+  (0.3ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 2)
150
+ SQL (0.4ms) UPDATE "items" SET position = (position - 1) WHERE (1 = 1 AND position > 1 AND position <= 2 AND id != 11)
151
+  (274.0ms) commit transaction
152
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:12:16 +0200
153
+ Served asset /activeadmin_draggable.js - 200 OK (9ms)
154
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:12:16 +0200
155
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
156
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:12:16 +0200
157
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
158
+ Connecting to database specified by database.yml
159
+  (0.0ms) begin transaction
160
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
161
+ SQL (24.9ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:12:49 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:12:49 UTC +00:00]]
162
+  (293.8ms) commit transaction
163
+  (0.2ms) begin transaction
164
+ SQL (0.6ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
165
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:12:49 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:12:49 UTC +00:00]]
166
+  (256.8ms) commit transaction
167
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 13]]
168
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 12]]
169
+ SQL (264.2ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1 AND position < 2)
170
+  (0.2ms) begin transaction
171
+  (0.5ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:12:50.485836' WHERE "items"."id" = 13
172
+  (0.2ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
173
+  (264.3ms) commit transaction
174
+  (0.1ms) begin transaction
175
+  (0.5ms) UPDATE "items" SET "position" = 2, "updated_at" = '2013-05-13 11:12:50.757391' WHERE "items"."id" = 13
176
+  (0.2ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 2)
177
+ SQL (0.3ms) UPDATE "items" SET position = (position - 1) WHERE (1 = 1 AND position > 1 AND position <= 2 AND id != 13)
178
+  (273.6ms) commit transaction
179
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:12:51 +0200
180
+ Served asset /activeadmin_draggable.js - 200 OK (6ms)
181
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:12:51 +0200
182
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
183
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:12:51 +0200
184
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
185
+ Connecting to database specified by database.yml
186
+  (0.0ms) begin transaction
187
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
188
+ SQL (24.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:13:22 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:13:22 UTC +00:00]]
189
+  (366.0ms) commit transaction
190
+  (0.2ms) begin transaction
191
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
192
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:13:22 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:13:22 UTC +00:00]]
193
+  (281.1ms) commit transaction
194
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 15]]
195
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 14]]
196
+ SQL (260.3ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1 AND position < 2)
197
+  (0.1ms) begin transaction
198
+  (0.2ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:13:23.364500' WHERE "items"."id" = 15
199
+  (0.1ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
200
+  (278.6ms) commit transaction
201
+  (0.1ms) begin transaction
202
+  (0.4ms) UPDATE "items" SET "position" = 2, "updated_at" = '2013-05-13 11:13:23.647052' WHERE "items"."id" = 15
203
+  (0.2ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 2)
204
+ SQL (0.4ms) UPDATE "items" SET position = (position - 1) WHERE (1 = 1 AND position > 1 AND position <= 2 AND id != 15)
205
+  (298.9ms) commit transaction
206
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:13:23 +0200
207
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
208
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:13:24 +0200
209
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
210
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:13:24 +0200
211
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
212
+ Connecting to database specified by database.yml
213
+  (0.0ms) begin transaction
214
+ SQL (1.6ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
215
+ SQL (24.2ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:13:39 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:13:39 UTC +00:00]]
216
+  (307.8ms) commit transaction
217
+  (0.2ms) begin transaction
218
+ SQL (0.6ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
219
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:13:39 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:13:39 UTC +00:00]]
220
+  (306.4ms) commit transaction
221
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 16]]
222
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 17]]
223
+ SQL (276.5ms) UPDATE "items" SET position = (position - 1) WHERE (1 = 1 AND position > 1 AND position <= 2)
224
+  (0.2ms) begin transaction
225
+  (0.5ms) UPDATE "items" SET "position" = 2, "updated_at" = '2013-05-13 11:13:40.409823' WHERE "items"."id" = 16
226
+  (0.2ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 2)
227
+  (279.3ms) commit transaction
228
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:13:40 +0200
229
+ Served asset /activeadmin_draggable.js - 200 OK (6ms)
230
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:13:40 +0200
231
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
232
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:13:40 +0200
233
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
234
+ Connecting to database specified by database.yml
235
+  (0.0ms) begin transaction
236
+ SQL (1.6ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
237
+ SQL (24.0ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:13:53 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:13:53 UTC +00:00]]
238
+  (459.2ms) commit transaction
239
+  (0.1ms) begin transaction
240
+ SQL (0.2ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
241
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:13:54 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:13:54 UTC +00:00]]
242
+  (286.2ms) commit transaction
243
+ Connecting to database specified by database.yml
244
+  (0.0ms) begin transaction
245
+ SQL (1.9ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
246
+ SQL (24.9ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:14:24 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:14:24 UTC +00:00]]
247
+  (302.1ms) commit transaction
248
+  (0.2ms) begin transaction
249
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
250
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:14:24 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:14:24 UTC +00:00]]
251
+  (283.4ms) commit transaction
252
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 21]]
253
+  (0.1ms) begin transaction
254
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position < 2)
255
+  (0.2ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:14:25.123579' WHERE "items"."id" = 21
256
+  (0.1ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
257
+  (274.8ms) commit transaction
258
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:14:25 +0200
259
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
260
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:14:25 +0200
261
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
262
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:14:25 +0200
263
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
264
+ Connecting to database specified by database.yml
265
+  (0.0ms) begin transaction
266
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
267
+ SQL (24.8ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:14:47 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:14:47 UTC +00:00]]
268
+  (298.2ms) commit transaction
269
+  (0.2ms) begin transaction
270
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
271
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:14:48 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:14:48 UTC +00:00]]
272
+  (306.3ms) commit transaction
273
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 23]]
274
+  (0.1ms) begin transaction
275
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position < 2)
276
+  (0.2ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:14:48.477649' WHERE "items"."id" = 23
277
+  (0.1ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
278
+  (372.5ms) commit transaction
279
+ Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 22]]
280
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 23]]
281
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:14:48 +0200
282
+ Served asset /activeadmin_draggable.js - 200 OK (7ms)
283
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:14:48 +0200
284
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
285
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:14:48 +0200
286
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
287
+ Connecting to database specified by database.yml
288
+ Connecting to database specified by database.yml
289
+  (0.0ms) begin transaction
290
+ SQL (1.8ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
291
+ SQL (24.9ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:45:17 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:45:17 UTC +00:00]]
292
+  (414.8ms) commit transaction
293
+  (0.2ms) begin transaction
294
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
295
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:45:18 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:45:18 UTC +00:00]]
296
+  (297.8ms) commit transaction
297
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:45:18 +0200
298
+ Served asset /activeadmin_draggable.js - 200 OK (10ms)
299
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:45:18 +0200
300
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
301
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:45:18 +0200
302
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
303
+ Connecting to database specified by database.yml
304
+  (0.0ms) begin transaction
305
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
306
+ SQL (25.7ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:45:35 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:45:35 UTC +00:00]]
307
+  (424.6ms) commit transaction
308
+  (0.2ms) begin transaction
309
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
310
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:45:35 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:45:35 UTC +00:00]]
311
+  (281.2ms) commit transaction
312
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 27]]
313
+  (0.1ms) begin transaction
314
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position < 2)
315
+  (0.5ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:45:35.844993' WHERE "items"."id" = 27
316
+  (0.3ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
317
+  (364.4ms) commit transaction
318
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 26]]
319
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:45:36 +0200
320
+ Served asset /activeadmin_draggable.js - 200 OK (6ms)
321
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:45:36 +0200
322
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
323
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:45:36 +0200
324
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
325
+ Connecting to database specified by database.yml
326
+  (0.0ms) begin transaction
327
+ SQL (1.8ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
328
+ SQL (24.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:46:04 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:46:04 UTC +00:00]]
329
+  (298.0ms) commit transaction
330
+  (0.2ms) begin transaction
331
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
332
+ SQL (0.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:46:04 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:46:04 UTC +00:00]]
333
+  (298.6ms) commit transaction
334
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 29]]
335
+  (0.1ms) begin transaction
336
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position < 2)
337
+  (0.5ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:46:05.013999' WHERE "items"."id" = 29
338
+  (0.1ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
339
+  (282.2ms) commit transaction
340
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 28]]
341
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:46:05 +0200
342
+ Served asset /activeadmin_draggable.js - 200 OK (6ms)
343
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:46:05 +0200
344
+ Served asset /jquery.tablednd_0_5.js - 200 OK (2ms)
345
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:46:05 +0200
346
+ Served asset /jquery.table_tree.js - 200 OK (2ms)
347
+ Connecting to database specified by database.yml
348
+  (0.0ms) begin transaction
349
+ SQL (1.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 1)
350
+ SQL (25.6ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:46:20 UTC +00:00], ["name", "test"], ["position", 1], ["updated_at", Mon, 13 May 2013 11:46:20 UTC +00:00]]
351
+  (442.9ms) commit transaction
352
+  (0.2ms) begin transaction
353
+ SQL (0.7ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position >= 2)
354
+ SQL (0.7ms) INSERT INTO "items" ("created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 13 May 2013 11:46:21 UTC +00:00], ["name", "test2"], ["position", 2], ["updated_at", Mon, 13 May 2013 11:46:21 UTC +00:00]]
355
+  (322.0ms) commit transaction
356
+ Item Load (0.5ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 31]]
357
+  (0.1ms) begin transaction
358
+ SQL (0.5ms) UPDATE "items" SET position = (position + 1) WHERE (1 = 1 AND position < 2)
359
+  (0.1ms) UPDATE "items" SET "position" = 1, "updated_at" = '2013-05-13 11:46:21.519077' WHERE "items"."id" = 31
360
+  (0.1ms) SELECT COUNT(*) FROM "items" WHERE (1 = 1 AND position = 1)
361
+  (295.0ms) commit transaction
362
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 30]]
363
+ Started GET "/assets/activeadmin_draggable.js" for 127.0.0.1 at 2013-05-13 13:46:21 +0200
364
+ Served asset /activeadmin_draggable.js - 200 OK (6ms)
365
+ Started GET "/assets/jquery.tablednd_0_5.js" for 127.0.0.1 at 2013-05-13 13:46:21 +0200
366
+ Served asset /jquery.tablednd_0_5.js - 200 OK (3ms)
367
+ Started GET "/assets/jquery.table_tree.js" for 127.0.0.1 at 2013-05-13 13:46:21 +0200
368
+ Served asset /jquery.table_tree.js - 200 OK (2ms)