user_impersonate2 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +77 -19
- data/app/controllers/user_impersonate/impersonate_controller.rb +15 -8
- data/app/helpers/user_impersonate/application_helper.rb +4 -4
- data/lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb +38 -9
- data/lib/user_impersonate/devise_helpers.rb +2 -2
- data/lib/user_impersonate/version.rb +1 -1
- data/test/dummy-rails3/config/initializers/user_impersonate.rb +38 -11
- data/test/dummy-rails3/log/development.log +170 -0
- data/test/dummy-rails3/log/test.log +2090 -0
- data/test/dummy-rails4/config/initializers/user_impersonate.rb +38 -11
- data/test/dummy-rails4/log/development.log +18 -0
- data/test/dummy-rails4/log/test.log +1588 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/291faed72d20664326ce265eb8e1ed2f +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/79203f7770f5d8956dee4606e93f3d65 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/a51c3d05425a76a50181d8144764ac8f +0 -0
- data/test/functional/impersonate_controller_test.rb +46 -0
- data/test/test_helper.rb +1 -0
- metadata +10 -6
- data/test/dummy-rails3/config/initializers/inflections.rb +0 -15
- data/test/dummy-rails4/config/initializers/inflections.rb +0 -15
@@ -1089,3 +1089,2093 @@ Processing by HomeController#index as HTML
|
|
1089
1089
|
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1090
1090
|
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1091
1091
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1092
|
+
Connecting to database specified by database.yml
|
1093
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
1094
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1095
|
+
Completed 401 Unauthorized in 2ms
|
1096
|
+
Rendered text template (0.0ms)
|
1097
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1098
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1099
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1100
|
+
Redirected to http://test.host/
|
1101
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1102
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1103
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1104
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1105
|
+
Completed 401 Unauthorized in 0ms
|
1106
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1108
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1109
|
+
Connecting to database specified by database.yml
|
1110
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1112
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1113
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:27', '2014-03-19 01:34:27')
|
1114
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:27', '2014-03-19 01:34:27')[0m
|
1115
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1116
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1117
|
+
|
1118
|
+
|
1119
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1120
|
+
Processing by Devise::SessionsController#new as HTML
|
1121
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
|
1122
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (11.8ms)
|
1123
|
+
Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.0ms)
|
1124
|
+
|
1125
|
+
|
1126
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1127
|
+
Processing by Devise::SessionsController#create as HTML
|
1128
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1129
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
1130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1131
|
+
[1m[35m (1.5ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:28.184760', "current_sign_in_at" = '2014-03-19 01:34:28.184760', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:28.185595' WHERE "users"."id" = 2
|
1132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1133
|
+
Redirected to http://www.example.com/
|
1134
|
+
Completed 302 Found in 87ms (ActiveRecord: 0.0ms)
|
1135
|
+
|
1136
|
+
|
1137
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1138
|
+
Processing by HomeController#index as HTML
|
1139
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1140
|
+
Rendered home/index.html.erb within layouts/application (1.7ms)
|
1141
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
1142
|
+
|
1143
|
+
|
1144
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1145
|
+
Processing by HomeController#index as HTML
|
1146
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1147
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
1148
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
1149
|
+
|
1150
|
+
|
1151
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1152
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1153
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1154
|
+
Redirected to http://www.example.com/
|
1155
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1156
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
1157
|
+
|
1158
|
+
|
1159
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1160
|
+
Processing by HomeController#index as HTML
|
1161
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1162
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
1163
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1164
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1165
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1166
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1167
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1168
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:28', '2014-03-19 01:34:28')
|
1169
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:28', '2014-03-19 01:34:28')[0m
|
1170
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1171
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1172
|
+
|
1173
|
+
|
1174
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1175
|
+
Processing by Devise::SessionsController#new as HTML
|
1176
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
1177
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.2ms)
|
1178
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
1179
|
+
|
1180
|
+
|
1181
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1182
|
+
Processing by Devise::SessionsController#create as HTML
|
1183
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1184
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
1185
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1186
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:28.309667', "current_sign_in_at" = '2014-03-19 01:34:28.309667', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:28.310135' WHERE "users"."id" = 1
|
1187
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1188
|
+
Redirected to http://www.example.com/
|
1189
|
+
Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
|
1190
|
+
|
1191
|
+
|
1192
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1193
|
+
Processing by HomeController#index as HTML
|
1194
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1195
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1196
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1197
|
+
|
1198
|
+
|
1199
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1200
|
+
Processing by HomeController#index as HTML
|
1201
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1202
|
+
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1203
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
1204
|
+
|
1205
|
+
|
1206
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1207
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1208
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1209
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1210
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1211
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.1ms)
|
1212
|
+
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)
|
1213
|
+
|
1214
|
+
|
1215
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1216
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1217
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1218
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1219
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1220
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1221
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
|
1222
|
+
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)
|
1223
|
+
|
1224
|
+
|
1225
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1226
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1227
|
+
Parameters: {"user_id"=>"2"}
|
1228
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1229
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1230
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1231
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:28.373644', "current_sign_in_at" = '2014-03-19 01:34:28.373644', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:28.374035' WHERE "users"."id" = 2[0m
|
1232
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1233
|
+
Redirected to http://www.example.com/
|
1234
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1235
|
+
|
1236
|
+
|
1237
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1238
|
+
Processing by HomeController#index as HTML
|
1239
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1240
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1241
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1242
|
+
Rendered user_impersonate/_header.html.erb (1.3ms)
|
1243
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)
|
1244
|
+
|
1245
|
+
|
1246
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1247
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1248
|
+
Parameters: {"utf8"=>"✓"}
|
1249
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1250
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1251
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1252
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:34:28.388398', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:34:28.388856' WHERE "users"."id" = 1
|
1253
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1254
|
+
Redirected to http://www.example.com/
|
1255
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
1256
|
+
|
1257
|
+
|
1258
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
|
1259
|
+
Processing by HomeController#index as HTML
|
1260
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1261
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1262
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1263
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1264
|
+
Connecting to database specified by database.yml
|
1265
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1266
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1267
|
+
Completed 401 Unauthorized in 1ms
|
1268
|
+
Rendered text template (0.0ms)
|
1269
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1270
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1271
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1272
|
+
Redirected to http://test.host/
|
1273
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1274
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1276
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1277
|
+
Completed 401 Unauthorized in 0ms
|
1278
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1279
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1280
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1281
|
+
Connecting to database specified by database.yml
|
1282
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1284
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1285
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:38', '2014-03-19 01:34:38')
|
1286
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:38', '2014-03-19 01:34:38')[0m
|
1287
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1288
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1289
|
+
|
1290
|
+
|
1291
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1292
|
+
Processing by Devise::SessionsController#new as HTML
|
1293
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.3ms)
|
1294
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (14.3ms)
|
1295
|
+
Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.0ms)
|
1296
|
+
|
1297
|
+
|
1298
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1299
|
+
Processing by Devise::SessionsController#create as HTML
|
1300
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1301
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
1302
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1303
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:39.158467', "current_sign_in_at" = '2014-03-19 01:34:39.158467', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:39.159292' WHERE "users"."id" = 2
|
1304
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1305
|
+
Redirected to http://www.example.com/
|
1306
|
+
Completed 302 Found in 88ms (ActiveRecord: 0.0ms)
|
1307
|
+
|
1308
|
+
|
1309
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1310
|
+
Processing by HomeController#index as HTML
|
1311
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1312
|
+
Rendered home/index.html.erb within layouts/application (2.7ms)
|
1313
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms)
|
1314
|
+
|
1315
|
+
|
1316
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1317
|
+
Processing by HomeController#index as HTML
|
1318
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1319
|
+
Rendered home/index.html.erb within layouts/application (1.6ms)
|
1320
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)
|
1321
|
+
|
1322
|
+
|
1323
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1324
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1325
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1326
|
+
Redirected to http://www.example.com/
|
1327
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1328
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
1329
|
+
|
1330
|
+
|
1331
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1332
|
+
Processing by HomeController#index as HTML
|
1333
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1334
|
+
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1335
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
|
1336
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1337
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1338
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1339
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1340
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:39', '2014-03-19 01:34:39')
|
1341
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:39', '2014-03-19 01:34:39')[0m
|
1342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1343
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1344
|
+
|
1345
|
+
|
1346
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1347
|
+
Processing by Devise::SessionsController#new as HTML
|
1348
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.0ms)
|
1349
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (8.2ms)
|
1350
|
+
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms)
|
1351
|
+
|
1352
|
+
|
1353
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1354
|
+
Processing by Devise::SessionsController#create as HTML
|
1355
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1356
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
1357
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1358
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:39.323209', "current_sign_in_at" = '2014-03-19 01:34:39.323209', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:39.323802' WHERE "users"."id" = 1
|
1359
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1360
|
+
Redirected to http://www.example.com/
|
1361
|
+
Completed 302 Found in 84ms (ActiveRecord: 0.0ms)
|
1362
|
+
|
1363
|
+
|
1364
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1365
|
+
Processing by HomeController#index as HTML
|
1366
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1367
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1368
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1369
|
+
|
1370
|
+
|
1371
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1372
|
+
Processing by HomeController#index as HTML
|
1373
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1374
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
1375
|
+
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.2ms)
|
1376
|
+
|
1377
|
+
|
1378
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1379
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1380
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1381
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1382
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1383
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
|
1384
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.5ms)
|
1385
|
+
|
1386
|
+
|
1387
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1388
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1389
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1390
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1391
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1392
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1393
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
|
1394
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
|
1395
|
+
|
1396
|
+
|
1397
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1398
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1399
|
+
Parameters: {"user_id"=>"2"}
|
1400
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1401
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1403
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:39.355470', "current_sign_in_at" = '2014-03-19 01:34:39.355470', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:39.355750' WHERE "users"."id" = 2[0m
|
1404
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1405
|
+
Redirected to http://www.example.com/
|
1406
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1407
|
+
|
1408
|
+
|
1409
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1410
|
+
Processing by HomeController#index as HTML
|
1411
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1412
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1413
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1414
|
+
Rendered user_impersonate/_header.html.erb (1.3ms)
|
1415
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
1416
|
+
|
1417
|
+
|
1418
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1419
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1420
|
+
Parameters: {"utf8"=>"✓"}
|
1421
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1422
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1423
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1424
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:34:39.370119', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:34:39.370572' WHERE "users"."id" = 1
|
1425
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1426
|
+
Redirected to http://www.example.com/
|
1427
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1428
|
+
|
1429
|
+
|
1430
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
|
1431
|
+
Processing by HomeController#index as HTML
|
1432
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1433
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1434
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1435
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1436
|
+
Connecting to database specified by database.yml
|
1437
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1438
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1439
|
+
Completed 401 Unauthorized in 1ms
|
1440
|
+
Rendered text template (0.0ms)
|
1441
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1443
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1444
|
+
Redirected to http://test.host/
|
1445
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1446
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1447
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1448
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1449
|
+
Completed 401 Unauthorized in 0ms
|
1450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1451
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1452
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1453
|
+
Connecting to database specified by database.yml
|
1454
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1456
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1457
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:58', '2014-03-19 01:36:58')
|
1458
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:58', '2014-03-19 01:36:58')[0m
|
1459
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1460
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1461
|
+
|
1462
|
+
|
1463
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1464
|
+
Processing by Devise::SessionsController#new as HTML
|
1465
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.0ms)
|
1466
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (9.2ms)
|
1467
|
+
Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms)
|
1468
|
+
|
1469
|
+
|
1470
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1471
|
+
Processing by Devise::SessionsController#create as HTML
|
1472
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1473
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
1474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1475
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:36:59.147171', "current_sign_in_at" = '2014-03-19 01:36:59.147171', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:36:59.147833' WHERE "users"."id" = 2
|
1476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1477
|
+
Redirected to http://www.example.com/
|
1478
|
+
Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
|
1479
|
+
|
1480
|
+
|
1481
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1482
|
+
Processing by HomeController#index as HTML
|
1483
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1484
|
+
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1485
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
1486
|
+
|
1487
|
+
|
1488
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1489
|
+
Processing by HomeController#index as HTML
|
1490
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1491
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1492
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1493
|
+
|
1494
|
+
|
1495
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1496
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1497
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1498
|
+
Redirected to http://www.example.com/
|
1499
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1500
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
1501
|
+
|
1502
|
+
|
1503
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1504
|
+
Processing by HomeController#index as HTML
|
1505
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1506
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1507
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
1508
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1509
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1511
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1512
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:59', '2014-03-19 01:36:59')
|
1513
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:59', '2014-03-19 01:36:59')[0m
|
1514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1515
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1516
|
+
|
1517
|
+
|
1518
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1519
|
+
Processing by Devise::SessionsController#new as HTML
|
1520
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
1521
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.0ms)
|
1522
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
1523
|
+
|
1524
|
+
|
1525
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1526
|
+
Processing by Devise::SessionsController#create as HTML
|
1527
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1528
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
1529
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1530
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:36:59.257509', "current_sign_in_at" = '2014-03-19 01:36:59.257509', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:36:59.258048' WHERE "users"."id" = 1
|
1531
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1532
|
+
Redirected to http://www.example.com/
|
1533
|
+
Completed 302 Found in 76ms (ActiveRecord: 0.0ms)
|
1534
|
+
|
1535
|
+
|
1536
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1537
|
+
Processing by HomeController#index as HTML
|
1538
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1539
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1540
|
+
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
1541
|
+
|
1542
|
+
|
1543
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1544
|
+
Processing by HomeController#index as HTML
|
1545
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1546
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1547
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1548
|
+
|
1549
|
+
|
1550
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1551
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1552
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1553
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1554
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1555
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.7ms)
|
1556
|
+
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
|
1557
|
+
|
1558
|
+
|
1559
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1560
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1561
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1562
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1563
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1564
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1565
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
|
1566
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
|
1567
|
+
|
1568
|
+
|
1569
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1570
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1571
|
+
Parameters: {"user_id"=>"2"}
|
1572
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1573
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1574
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1575
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:36:59.321330', "current_sign_in_at" = '2014-03-19 01:36:59.321330', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:36:59.321728' WHERE "users"."id" = 2[0m
|
1576
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1577
|
+
Redirected to http://www.example.com/
|
1578
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1579
|
+
|
1580
|
+
|
1581
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1582
|
+
Processing by HomeController#index as HTML
|
1583
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1584
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1585
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1586
|
+
Rendered user_impersonate/_header.html.erb (1.1ms)
|
1587
|
+
Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.1ms)
|
1588
|
+
|
1589
|
+
|
1590
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1591
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1592
|
+
Parameters: {"utf8"=>"✓"}
|
1593
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1594
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1596
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:36:59.334380', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:36:59.334855' WHERE "users"."id" = 1
|
1597
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1598
|
+
Redirected to http://www.example.com/
|
1599
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
1600
|
+
|
1601
|
+
|
1602
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
|
1603
|
+
Processing by HomeController#index as HTML
|
1604
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1605
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1606
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
1607
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1608
|
+
Connecting to database specified by database.yml
|
1609
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1610
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1611
|
+
Completed 401 Unauthorized in 1ms
|
1612
|
+
Rendered text template (0.0ms)
|
1613
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1615
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1616
|
+
Redirected to http://test.host/
|
1617
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1618
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1620
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1621
|
+
Completed 401 Unauthorized in 0ms
|
1622
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1623
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1624
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1625
|
+
Connecting to database specified by database.yml
|
1626
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1627
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1628
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1629
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')
|
1630
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')[0m
|
1631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1632
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1633
|
+
|
1634
|
+
|
1635
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1636
|
+
Processing by Devise::SessionsController#new as HTML
|
1637
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
|
1638
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (10.9ms)
|
1639
|
+
Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms)
|
1640
|
+
|
1641
|
+
|
1642
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1643
|
+
Processing by Devise::SessionsController#create as HTML
|
1644
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1645
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
1646
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1647
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:37:08.682568', "current_sign_in_at" = '2014-03-19 01:37:08.682568', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:37:08.683190' WHERE "users"."id" = 2
|
1648
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1649
|
+
Redirected to http://www.example.com/
|
1650
|
+
Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
|
1651
|
+
|
1652
|
+
|
1653
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1654
|
+
Processing by HomeController#index as HTML
|
1655
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1656
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
1657
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
1658
|
+
|
1659
|
+
|
1660
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1661
|
+
Processing by HomeController#index as HTML
|
1662
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1663
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1664
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1665
|
+
|
1666
|
+
|
1667
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1668
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1669
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1670
|
+
Redirected to http://www.example.com/
|
1671
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1672
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
1673
|
+
|
1674
|
+
|
1675
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1676
|
+
Processing by HomeController#index as HTML
|
1677
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1678
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1679
|
+
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
1680
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1682
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1683
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1684
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')
|
1685
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')[0m
|
1686
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1687
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1688
|
+
|
1689
|
+
|
1690
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1691
|
+
Processing by Devise::SessionsController#new as HTML
|
1692
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.2ms)
|
1693
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.8ms)
|
1694
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
1695
|
+
|
1696
|
+
|
1697
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1698
|
+
Processing by Devise::SessionsController#create as HTML
|
1699
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1700
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
1701
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1702
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:37:08.793504', "current_sign_in_at" = '2014-03-19 01:37:08.793504', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:37:08.794005' WHERE "users"."id" = 1
|
1703
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1704
|
+
Redirected to http://www.example.com/
|
1705
|
+
Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
|
1706
|
+
|
1707
|
+
|
1708
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1709
|
+
Processing by HomeController#index as HTML
|
1710
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1711
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1712
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1713
|
+
|
1714
|
+
|
1715
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1716
|
+
Processing by HomeController#index as HTML
|
1717
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1718
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1719
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1720
|
+
|
1721
|
+
|
1722
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1723
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1724
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1726
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1727
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
|
1728
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)
|
1729
|
+
|
1730
|
+
|
1731
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1732
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1733
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1734
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1735
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1736
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1737
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.2ms)
|
1738
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
|
1739
|
+
|
1740
|
+
|
1741
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1742
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1743
|
+
Parameters: {"user_id"=>"2"}
|
1744
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1745
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1747
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:37:08.822673', "current_sign_in_at" = '2014-03-19 01:37:08.822673', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:37:08.822993' WHERE "users"."id" = 2[0m
|
1748
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1749
|
+
Redirected to http://www.example.com/
|
1750
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1751
|
+
|
1752
|
+
|
1753
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1754
|
+
Processing by HomeController#index as HTML
|
1755
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1756
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
1757
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1758
|
+
Rendered user_impersonate/_header.html.erb (1.3ms)
|
1759
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
|
1760
|
+
|
1761
|
+
|
1762
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1763
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1764
|
+
Parameters: {"utf8"=>"✓"}
|
1765
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1766
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1767
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1768
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:37:08.835149', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:37:08.835536' WHERE "users"."id" = 1
|
1769
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1770
|
+
Redirected to http://www.example.com/
|
1771
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1772
|
+
|
1773
|
+
|
1774
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
|
1775
|
+
Processing by HomeController#index as HTML
|
1776
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1777
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1778
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1779
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1780
|
+
Connecting to database specified by database.yml
|
1781
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1782
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1783
|
+
Completed 401 Unauthorized in 1ms
|
1784
|
+
Rendered text template (0.0ms)
|
1785
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1786
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1787
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1788
|
+
Redirected to http://test.host/
|
1789
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1790
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1792
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1793
|
+
Completed 401 Unauthorized in 0ms
|
1794
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1796
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1797
|
+
Connecting to database specified by database.yml
|
1798
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1799
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1800
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1801
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')
|
1802
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')[0m
|
1803
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1804
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1805
|
+
|
1806
|
+
|
1807
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1808
|
+
Processing by Devise::SessionsController#new as HTML
|
1809
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
|
1810
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (10.2ms)
|
1811
|
+
Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.0ms)
|
1812
|
+
|
1813
|
+
|
1814
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1815
|
+
Processing by Devise::SessionsController#create as HTML
|
1816
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1817
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
1818
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1819
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:45.550648', "current_sign_in_at" = '2014-03-19 01:40:45.550648', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:45.551352' WHERE "users"."id" = 2
|
1820
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1821
|
+
Redirected to http://www.example.com/
|
1822
|
+
Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
|
1823
|
+
|
1824
|
+
|
1825
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1826
|
+
Processing by HomeController#index as HTML
|
1827
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1828
|
+
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1829
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
1830
|
+
|
1831
|
+
|
1832
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1833
|
+
Processing by HomeController#index as HTML
|
1834
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1835
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1836
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1837
|
+
|
1838
|
+
|
1839
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1840
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1841
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1842
|
+
Redirected to http://www.example.com/
|
1843
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1844
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
1845
|
+
|
1846
|
+
|
1847
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1848
|
+
Processing by HomeController#index as HTML
|
1849
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1850
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
1851
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
1852
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1853
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1854
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1855
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1856
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')
|
1857
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')[0m
|
1858
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1859
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1860
|
+
|
1861
|
+
|
1862
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1863
|
+
Processing by Devise::SessionsController#new as HTML
|
1864
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
1865
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.0ms)
|
1866
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
1867
|
+
|
1868
|
+
|
1869
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1870
|
+
Processing by Devise::SessionsController#create as HTML
|
1871
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1872
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
1873
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1874
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:45.659803', "current_sign_in_at" = '2014-03-19 01:40:45.659803', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:45.660319' WHERE "users"."id" = 1
|
1875
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1876
|
+
Redirected to http://www.example.com/
|
1877
|
+
Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
|
1878
|
+
|
1879
|
+
|
1880
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1881
|
+
Processing by HomeController#index as HTML
|
1882
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1883
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1884
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1885
|
+
|
1886
|
+
|
1887
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1888
|
+
Processing by HomeController#index as HTML
|
1889
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1890
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1891
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1892
|
+
|
1893
|
+
|
1894
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1895
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1896
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1897
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1898
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1899
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.8ms)
|
1900
|
+
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
|
1901
|
+
|
1902
|
+
|
1903
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1904
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1905
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1906
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1907
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1908
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1909
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
|
1910
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
|
1911
|
+
|
1912
|
+
|
1913
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1914
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1915
|
+
Parameters: {"user_id"=>"2"}
|
1916
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1917
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1918
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1919
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:45.723564', "current_sign_in_at" = '2014-03-19 01:40:45.723564', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:45.723948' WHERE "users"."id" = 2[0m
|
1920
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1921
|
+
Redirected to http://www.example.com/
|
1922
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1923
|
+
|
1924
|
+
|
1925
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1926
|
+
Processing by HomeController#index as HTML
|
1927
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1928
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
1929
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1930
|
+
Rendered user_impersonate/_header.html.erb (1.1ms)
|
1931
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
1932
|
+
|
1933
|
+
|
1934
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1935
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1936
|
+
Parameters: {"utf8"=>"✓"}
|
1937
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1938
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1939
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1940
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:40:45.736753', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:40:45.737198' WHERE "users"."id" = 1
|
1941
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1942
|
+
Redirected to http://www.example.com/
|
1943
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
1944
|
+
|
1945
|
+
|
1946
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
|
1947
|
+
Processing by HomeController#index as HTML
|
1948
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1949
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1950
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1951
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1952
|
+
Connecting to database specified by database.yml
|
1953
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1954
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1955
|
+
Completed 401 Unauthorized in 1ms
|
1956
|
+
Rendered text template (0.0ms)
|
1957
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1958
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1959
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1960
|
+
Redirected to http://test.host/
|
1961
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1962
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1963
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1964
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1965
|
+
Completed 401 Unauthorized in 0ms
|
1966
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1967
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1968
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1969
|
+
Connecting to database specified by database.yml
|
1970
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1971
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1972
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1973
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:54', '2014-03-19 01:40:54')
|
1974
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:54', '2014-03-19 01:40:54')[0m
|
1975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1976
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1977
|
+
|
1978
|
+
|
1979
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:54 -0700
|
1980
|
+
Processing by Devise::SessionsController#new as HTML
|
1981
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.2ms)
|
1982
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (16.6ms)
|
1983
|
+
Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)
|
1984
|
+
|
1985
|
+
|
1986
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
1987
|
+
Processing by Devise::SessionsController#create as HTML
|
1988
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1989
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
1990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1991
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:55.106183', "current_sign_in_at" = '2014-03-19 01:40:55.106183', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:55.106820' WHERE "users"."id" = 2
|
1992
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1993
|
+
Redirected to http://www.example.com/
|
1994
|
+
Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
|
1995
|
+
|
1996
|
+
|
1997
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
1998
|
+
Processing by HomeController#index as HTML
|
1999
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2000
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
2001
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
2002
|
+
|
2003
|
+
|
2004
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2005
|
+
Processing by HomeController#index as HTML
|
2006
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2007
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2008
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2009
|
+
|
2010
|
+
|
2011
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2012
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2013
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2014
|
+
Redirected to http://www.example.com/
|
2015
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2016
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
2017
|
+
|
2018
|
+
|
2019
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2020
|
+
Processing by HomeController#index as HTML
|
2021
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2022
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
2023
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2024
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2025
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2026
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2027
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2028
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:55', '2014-03-19 01:40:55')
|
2029
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:55', '2014-03-19 01:40:55')[0m
|
2030
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2031
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
2032
|
+
|
2033
|
+
|
2034
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2035
|
+
Processing by Devise::SessionsController#new as HTML
|
2036
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
2037
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.8ms)
|
2038
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
2039
|
+
|
2040
|
+
|
2041
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2042
|
+
Processing by Devise::SessionsController#create as HTML
|
2043
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2044
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
2045
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2046
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:55.217094', "current_sign_in_at" = '2014-03-19 01:40:55.217094', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:55.217626' WHERE "users"."id" = 1
|
2047
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2048
|
+
Redirected to http://www.example.com/
|
2049
|
+
Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
|
2050
|
+
|
2051
|
+
|
2052
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2053
|
+
Processing by HomeController#index as HTML
|
2054
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2055
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
2056
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
2057
|
+
|
2058
|
+
|
2059
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2060
|
+
Processing by HomeController#index as HTML
|
2061
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2062
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
2063
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2064
|
+
|
2065
|
+
|
2066
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2067
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2068
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2069
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2070
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2071
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
|
2072
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
|
2073
|
+
|
2074
|
+
|
2075
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2076
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2077
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2078
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2079
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2080
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2081
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.1ms)
|
2082
|
+
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
|
2083
|
+
|
2084
|
+
|
2085
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2086
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2087
|
+
Parameters: {"user_id"=>"2"}
|
2088
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2089
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2090
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2091
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:55.245206', "current_sign_in_at" = '2014-03-19 01:40:55.245206', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:55.245500' WHERE "users"."id" = 2[0m
|
2092
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2093
|
+
Redirected to http://www.example.com/
|
2094
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
2095
|
+
|
2096
|
+
|
2097
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2098
|
+
Processing by HomeController#index as HTML
|
2099
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2100
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
2101
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2102
|
+
Rendered user_impersonate/_header.html.erb (1.2ms)
|
2103
|
+
Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.1ms)
|
2104
|
+
|
2105
|
+
|
2106
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2107
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2108
|
+
Parameters: {"utf8"=>"✓"}
|
2109
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2110
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2112
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:40:55.256715', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:40:55.257107' WHERE "users"."id" = 1
|
2113
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2114
|
+
Redirected to http://www.example.com/
|
2115
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
2116
|
+
|
2117
|
+
|
2118
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
|
2119
|
+
Processing by HomeController#index as HTML
|
2120
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2121
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
2122
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
2123
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2124
|
+
Connecting to database specified by database.yml
|
2125
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2126
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2127
|
+
Completed 401 Unauthorized in 1ms
|
2128
|
+
Rendered text template (0.0ms)
|
2129
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2130
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2131
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2132
|
+
Redirected to http://test.host/
|
2133
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2136
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2137
|
+
Completed 401 Unauthorized in 0ms
|
2138
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2140
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2141
|
+
Connecting to database specified by database.yml
|
2142
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2143
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2144
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2145
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')
|
2146
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')[0m
|
2147
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2148
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
2149
|
+
|
2150
|
+
|
2151
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2152
|
+
Processing by Devise::SessionsController#new as HTML
|
2153
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
|
2154
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (9.4ms)
|
2155
|
+
Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.0ms)
|
2156
|
+
|
2157
|
+
|
2158
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2159
|
+
Processing by Devise::SessionsController#create as HTML
|
2160
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2161
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
2162
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2163
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:29.357923', "current_sign_in_at" = '2014-03-19 01:55:29.357923', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:29.358626' WHERE "users"."id" = 2
|
2164
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2165
|
+
Redirected to http://www.example.com/
|
2166
|
+
Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
|
2167
|
+
|
2168
|
+
|
2169
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2170
|
+
Processing by HomeController#index as HTML
|
2171
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2172
|
+
Rendered home/index.html.erb within layouts/application (1.4ms)
|
2173
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
2174
|
+
|
2175
|
+
|
2176
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2177
|
+
Processing by HomeController#index as HTML
|
2178
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2179
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
2180
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2181
|
+
|
2182
|
+
|
2183
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2184
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2185
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2186
|
+
Redirected to http://www.example.com/
|
2187
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2188
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
2189
|
+
|
2190
|
+
|
2191
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2192
|
+
Processing by HomeController#index as HTML
|
2193
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2194
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2195
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2196
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2198
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2199
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2200
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')
|
2201
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')[0m
|
2202
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2203
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
2204
|
+
|
2205
|
+
|
2206
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2207
|
+
Processing by Devise::SessionsController#new as HTML
|
2208
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.2ms)
|
2209
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.9ms)
|
2210
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
2211
|
+
|
2212
|
+
|
2213
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2214
|
+
Processing by Devise::SessionsController#create as HTML
|
2215
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2216
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
2217
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2218
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:29.470669', "current_sign_in_at" = '2014-03-19 01:55:29.470669', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:29.471226' WHERE "users"."id" = 1
|
2219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2220
|
+
Redirected to http://www.example.com/
|
2221
|
+
Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
|
2222
|
+
|
2223
|
+
|
2224
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2225
|
+
Processing by HomeController#index as HTML
|
2226
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2227
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
2228
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
2229
|
+
|
2230
|
+
|
2231
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2232
|
+
Processing by HomeController#index as HTML
|
2233
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2234
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
2235
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
2236
|
+
|
2237
|
+
|
2238
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2239
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2240
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2241
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2242
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2243
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (4.0ms)
|
2244
|
+
Completed 200 OK in 36ms (Views: 7.6ms | ActiveRecord: 0.4ms)
|
2245
|
+
|
2246
|
+
|
2247
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2248
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2249
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2250
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2251
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2252
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2253
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
2254
|
+
Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)
|
2255
|
+
|
2256
|
+
|
2257
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2258
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2259
|
+
Parameters: {"user_id"=>"2"}
|
2260
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2261
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2263
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:29.532932', "current_sign_in_at" = '2014-03-19 01:55:29.532932', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:29.533359' WHERE "users"."id" = 2[0m
|
2264
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2265
|
+
Redirected to http://www.example.com/
|
2266
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
2267
|
+
|
2268
|
+
|
2269
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2270
|
+
Processing by HomeController#index as HTML
|
2271
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2272
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2273
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2274
|
+
Rendered user_impersonate/_header.html.erb (1.3ms)
|
2275
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
|
2276
|
+
|
2277
|
+
|
2278
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2279
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2280
|
+
Parameters: {"utf8"=>"✓"}
|
2281
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2282
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2283
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2284
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:55:29.546428', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:55:29.546912' WHERE "users"."id" = 1
|
2285
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2286
|
+
Redirected to http://www.example.com/
|
2287
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
2288
|
+
|
2289
|
+
|
2290
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
|
2291
|
+
Processing by HomeController#index as HTML
|
2292
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2293
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
2294
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
2295
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2296
|
+
Connecting to database specified by database.yml
|
2297
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2298
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2299
|
+
Completed 401 Unauthorized in 1ms
|
2300
|
+
Rendered text template (0.0ms)
|
2301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2303
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2304
|
+
Redirected to http://test.host/
|
2305
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2306
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2307
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2308
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2309
|
+
Completed 401 Unauthorized in 0ms
|
2310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2312
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2313
|
+
Connecting to database specified by database.yml
|
2314
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2316
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2317
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:38', '2014-03-19 01:55:38')
|
2318
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:38', '2014-03-19 01:55:38')[0m
|
2319
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2320
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
2321
|
+
|
2322
|
+
|
2323
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:38 -0700
|
2324
|
+
Processing by Devise::SessionsController#new as HTML
|
2325
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.0ms)
|
2326
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (11.2ms)
|
2327
|
+
Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.0ms)
|
2328
|
+
|
2329
|
+
|
2330
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2331
|
+
Processing by Devise::SessionsController#create as HTML
|
2332
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2333
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
2334
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2335
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:39.095017', "current_sign_in_at" = '2014-03-19 01:55:39.095017', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:39.095647' WHERE "users"."id" = 2
|
2336
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2337
|
+
Redirected to http://www.example.com/
|
2338
|
+
Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
|
2339
|
+
|
2340
|
+
|
2341
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2342
|
+
Processing by HomeController#index as HTML
|
2343
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2344
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
2345
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
2346
|
+
|
2347
|
+
|
2348
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2349
|
+
Processing by HomeController#index as HTML
|
2350
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2351
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2352
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2353
|
+
|
2354
|
+
|
2355
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2356
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2357
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2358
|
+
Redirected to http://www.example.com/
|
2359
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2360
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
2361
|
+
|
2362
|
+
|
2363
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2364
|
+
Processing by HomeController#index as HTML
|
2365
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2366
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
2367
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2368
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2370
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2371
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2372
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:39', '2014-03-19 01:55:39')
|
2373
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:39', '2014-03-19 01:55:39')[0m
|
2374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2375
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
2376
|
+
|
2377
|
+
|
2378
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2379
|
+
Processing by Devise::SessionsController#new as HTML
|
2380
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
2381
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.8ms)
|
2382
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
2383
|
+
|
2384
|
+
|
2385
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2386
|
+
Processing by Devise::SessionsController#create as HTML
|
2387
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2388
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
2389
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2390
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:39.208192', "current_sign_in_at" = '2014-03-19 01:55:39.208192', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:39.208662' WHERE "users"."id" = 1
|
2391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2392
|
+
Redirected to http://www.example.com/
|
2393
|
+
Completed 302 Found in 78ms (ActiveRecord: 0.0ms)
|
2394
|
+
|
2395
|
+
|
2396
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2397
|
+
Processing by HomeController#index as HTML
|
2398
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2399
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
2400
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
2401
|
+
|
2402
|
+
|
2403
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2404
|
+
Processing by HomeController#index as HTML
|
2405
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2406
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
2407
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
2408
|
+
|
2409
|
+
|
2410
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2411
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2412
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2413
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2414
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2415
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
|
2416
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
|
2417
|
+
|
2418
|
+
|
2419
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2420
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2421
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2422
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2423
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2424
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2425
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.2ms)
|
2426
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
|
2427
|
+
|
2428
|
+
|
2429
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2430
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2431
|
+
Parameters: {"user_id"=>"2"}
|
2432
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2433
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2434
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2435
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:39.236567', "current_sign_in_at" = '2014-03-19 01:55:39.236567', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:39.236872' WHERE "users"."id" = 2[0m
|
2436
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2437
|
+
Redirected to http://www.example.com/
|
2438
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
2439
|
+
|
2440
|
+
|
2441
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2442
|
+
Processing by HomeController#index as HTML
|
2443
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2444
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
2445
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2446
|
+
Rendered user_impersonate/_header.html.erb (1.4ms)
|
2447
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
|
2448
|
+
|
2449
|
+
|
2450
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2451
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2452
|
+
Parameters: {"utf8"=>"✓"}
|
2453
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2454
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2455
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2456
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:55:39.251020', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:55:39.251394' WHERE "users"."id" = 1
|
2457
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2458
|
+
Redirected to http://www.example.com/
|
2459
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
2460
|
+
|
2461
|
+
|
2462
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
|
2463
|
+
Processing by HomeController#index as HTML
|
2464
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2465
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
2466
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
2467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2468
|
+
Connecting to database specified by database.yml
|
2469
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2470
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2471
|
+
Completed 401 Unauthorized in 1ms
|
2472
|
+
Rendered text template (0.0ms)
|
2473
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2475
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2476
|
+
Redirected to http://test.host/
|
2477
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2478
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2479
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2480
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2481
|
+
Completed 401 Unauthorized in 0ms
|
2482
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2483
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2484
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2485
|
+
Connecting to database specified by database.yml
|
2486
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2487
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2488
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2489
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')
|
2490
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')[0m
|
2491
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2492
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
2493
|
+
|
2494
|
+
|
2495
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2496
|
+
Processing by Devise::SessionsController#new as HTML
|
2497
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.2ms)
|
2498
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (9.8ms)
|
2499
|
+
Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms)
|
2500
|
+
|
2501
|
+
|
2502
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2503
|
+
Processing by Devise::SessionsController#create as HTML
|
2504
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2505
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
2506
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2507
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:09.733084', "current_sign_in_at" = '2014-03-19 01:56:09.733084', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:09.733954' WHERE "users"."id" = 2
|
2508
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2509
|
+
Redirected to http://www.example.com/
|
2510
|
+
Completed 302 Found in 82ms (ActiveRecord: 0.0ms)
|
2511
|
+
|
2512
|
+
|
2513
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2514
|
+
Processing by HomeController#index as HTML
|
2515
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2516
|
+
Rendered home/index.html.erb within layouts/application (1.7ms)
|
2517
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
|
2518
|
+
|
2519
|
+
|
2520
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2521
|
+
Processing by HomeController#index as HTML
|
2522
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2523
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
2524
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
2525
|
+
|
2526
|
+
|
2527
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2528
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2529
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2530
|
+
Redirected to http://www.example.com/
|
2531
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2532
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
2533
|
+
|
2534
|
+
|
2535
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2536
|
+
Processing by HomeController#index as HTML
|
2537
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2538
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
2539
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
2540
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2542
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2543
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2544
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')
|
2545
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')[0m
|
2546
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2547
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
2548
|
+
|
2549
|
+
|
2550
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2551
|
+
Processing by Devise::SessionsController#new as HTML
|
2552
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.4ms)
|
2553
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (3.3ms)
|
2554
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
2555
|
+
|
2556
|
+
|
2557
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2558
|
+
Processing by Devise::SessionsController#create as HTML
|
2559
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2560
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
2561
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2562
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:09.853879', "current_sign_in_at" = '2014-03-19 01:56:09.853879', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:09.854437' WHERE "users"."id" = 1
|
2563
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2564
|
+
Redirected to http://www.example.com/
|
2565
|
+
Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
|
2566
|
+
|
2567
|
+
|
2568
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2569
|
+
Processing by HomeController#index as HTML
|
2570
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2571
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
2572
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
2573
|
+
|
2574
|
+
|
2575
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2576
|
+
Processing by HomeController#index as HTML
|
2577
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2578
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
2579
|
+
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
2580
|
+
|
2581
|
+
|
2582
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2583
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2584
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2585
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2586
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2587
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.1ms)
|
2588
|
+
Completed 200 OK in 39ms (Views: 6.9ms | ActiveRecord: 0.4ms)
|
2589
|
+
|
2590
|
+
|
2591
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2592
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2593
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2594
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2595
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2596
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2597
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.1ms)
|
2598
|
+
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms)
|
2599
|
+
|
2600
|
+
|
2601
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2602
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2603
|
+
Parameters: {"user_id"=>"2"}
|
2604
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2605
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2606
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2607
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:09.921617', "current_sign_in_at" = '2014-03-19 01:56:09.921617', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:09.922029' WHERE "users"."id" = 2[0m
|
2608
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2609
|
+
Redirected to http://www.example.com/
|
2610
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
2611
|
+
|
2612
|
+
|
2613
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2614
|
+
Processing by HomeController#index as HTML
|
2615
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2616
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
2617
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2618
|
+
Rendered user_impersonate/_header.html.erb (1.3ms)
|
2619
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
2620
|
+
|
2621
|
+
|
2622
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2623
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2624
|
+
Parameters: {"utf8"=>"✓"}
|
2625
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2626
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2627
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2628
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:56:09.936253', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:56:09.936721' WHERE "users"."id" = 1
|
2629
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2630
|
+
Redirected to http://www.example.com/
|
2631
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
2632
|
+
|
2633
|
+
|
2634
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
|
2635
|
+
Processing by HomeController#index as HTML
|
2636
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2637
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
2638
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
2639
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2640
|
+
Connecting to database specified by database.yml
|
2641
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2642
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2643
|
+
Completed 401 Unauthorized in 1ms
|
2644
|
+
Rendered text template (0.0ms)
|
2645
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2646
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2647
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2648
|
+
Redirected to http://test.host/
|
2649
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2650
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2652
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2653
|
+
Completed 401 Unauthorized in 0ms
|
2654
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2655
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2656
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2657
|
+
Connecting to database specified by database.yml
|
2658
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2659
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2660
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2661
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')
|
2662
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')[0m
|
2663
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2664
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
2665
|
+
|
2666
|
+
|
2667
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2668
|
+
Processing by Devise::SessionsController#new as HTML
|
2669
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
|
2670
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (16.9ms)
|
2671
|
+
Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)
|
2672
|
+
|
2673
|
+
|
2674
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2675
|
+
Processing by Devise::SessionsController#create as HTML
|
2676
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2677
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
2678
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2679
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:19.677615', "current_sign_in_at" = '2014-03-19 01:56:19.677615', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:19.678233' WHERE "users"."id" = 2
|
2680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2681
|
+
Redirected to http://www.example.com/
|
2682
|
+
Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
|
2683
|
+
|
2684
|
+
|
2685
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2686
|
+
Processing by HomeController#index as HTML
|
2687
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2688
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
2689
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
2690
|
+
|
2691
|
+
|
2692
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2693
|
+
Processing by HomeController#index as HTML
|
2694
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2695
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2696
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2697
|
+
|
2698
|
+
|
2699
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2700
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2701
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2702
|
+
Redirected to http://www.example.com/
|
2703
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2704
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
2705
|
+
|
2706
|
+
|
2707
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2708
|
+
Processing by HomeController#index as HTML
|
2709
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2710
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
2711
|
+
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
2712
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2713
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2714
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2715
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2716
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')
|
2717
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')[0m
|
2718
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2719
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
2720
|
+
|
2721
|
+
|
2722
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2723
|
+
Processing by Devise::SessionsController#new as HTML
|
2724
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
2725
|
+
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
|
2726
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
2727
|
+
|
2728
|
+
|
2729
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2730
|
+
Processing by Devise::SessionsController#create as HTML
|
2731
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2732
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
2733
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2734
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:19.790002', "current_sign_in_at" = '2014-03-19 01:56:19.790002', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:19.790455' WHERE "users"."id" = 1
|
2735
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2736
|
+
Redirected to http://www.example.com/
|
2737
|
+
Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
|
2738
|
+
|
2739
|
+
|
2740
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2741
|
+
Processing by HomeController#index as HTML
|
2742
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2743
|
+
Rendered home/index.html.erb within layouts/application (1.0ms)
|
2744
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
2745
|
+
|
2746
|
+
|
2747
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2748
|
+
Processing by HomeController#index as HTML
|
2749
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2750
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
2751
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2752
|
+
|
2753
|
+
|
2754
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2755
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2756
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2757
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2758
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2759
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
|
2760
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms)
|
2761
|
+
|
2762
|
+
|
2763
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2764
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2765
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2766
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2767
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2768
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2769
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.2ms)
|
2770
|
+
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
|
2771
|
+
|
2772
|
+
|
2773
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2774
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2775
|
+
Parameters: {"user_id"=>"2"}
|
2776
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2777
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2779
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:19.817838', "current_sign_in_at" = '2014-03-19 01:56:19.817838', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:19.818143' WHERE "users"."id" = 2[0m
|
2780
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2781
|
+
Redirected to http://www.example.com/
|
2782
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
2783
|
+
|
2784
|
+
|
2785
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2786
|
+
Processing by HomeController#index as HTML
|
2787
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2788
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
2789
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2790
|
+
Rendered user_impersonate/_header.html.erb (1.3ms)
|
2791
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)
|
2792
|
+
|
2793
|
+
|
2794
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2795
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2796
|
+
Parameters: {"utf8"=>"✓"}
|
2797
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2798
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2799
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2800
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:56:19.830687', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:56:19.831020' WHERE "users"."id" = 1
|
2801
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2802
|
+
Redirected to http://www.example.com/
|
2803
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
2804
|
+
|
2805
|
+
|
2806
|
+
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
|
2807
|
+
Processing by HomeController#index as HTML
|
2808
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2809
|
+
Rendered home/index.html.erb within layouts/application (1.1ms)
|
2810
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
2811
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2812
|
+
Connecting to database specified by database.yml
|
2813
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2814
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2815
|
+
Redirected to
|
2816
|
+
Redirected to http://test.host/
|
2817
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2818
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2819
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2820
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2821
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2822
|
+
Redirected to
|
2823
|
+
Redirected to http://test.host/
|
2824
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2825
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2826
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2827
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2828
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2829
|
+
Completed 401 Unauthorized in 2ms
|
2830
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2831
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2832
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2833
|
+
Redirected to http://test.host/
|
2834
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2835
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2836
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2837
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2838
|
+
Completed 401 Unauthorized in 0ms
|
2839
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2841
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2842
|
+
Connecting to database specified by database.yml
|
2843
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
2844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2845
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2846
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')
|
2847
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')[0m
|
2848
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2849
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
2850
|
+
|
2851
|
+
|
2852
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2853
|
+
Processing by Devise::SessionsController#new as HTML
|
2854
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
|
2855
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (39.3ms)
|
2856
|
+
Completed 200 OK in 48ms (Views: 46.7ms | ActiveRecord: 0.0ms)
|
2857
|
+
|
2858
|
+
|
2859
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2860
|
+
Processing by Devise::SessionsController#create as HTML
|
2861
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2862
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
2863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2864
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:14.220462', "current_sign_in_at" = '2014-04-09 05:45:14.220462', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:14.221085' WHERE "users"."id" = 2
|
2865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2866
|
+
Redirected to http://www.example.com/
|
2867
|
+
Completed 302 Found in 75ms (ActiveRecord: 0.0ms)
|
2868
|
+
|
2869
|
+
|
2870
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2871
|
+
Processing by HomeController#index as HTML
|
2872
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2873
|
+
Rendered home/index.html.erb within layouts/application (1.4ms)
|
2874
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
2875
|
+
|
2876
|
+
|
2877
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2878
|
+
Processing by HomeController#index as HTML
|
2879
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2880
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2881
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2882
|
+
|
2883
|
+
|
2884
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2885
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2886
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2887
|
+
Redirected to http://www.example.com/
|
2888
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
2889
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
2890
|
+
|
2891
|
+
|
2892
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2893
|
+
Processing by HomeController#index as HTML
|
2894
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2895
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
2896
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2897
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2898
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2899
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2900
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
2901
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')
|
2902
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')[0m
|
2903
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2904
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
2905
|
+
|
2906
|
+
|
2907
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2908
|
+
Processing by Devise::SessionsController#new as HTML
|
2909
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
2910
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.2ms)
|
2911
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
2912
|
+
|
2913
|
+
|
2914
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2915
|
+
Processing by Devise::SessionsController#create as HTML
|
2916
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
2917
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
2918
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2919
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:14.336773', "current_sign_in_at" = '2014-04-09 05:45:14.336773', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:14.337264' WHERE "users"."id" = 1
|
2920
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2921
|
+
Redirected to http://www.example.com/
|
2922
|
+
Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
|
2923
|
+
|
2924
|
+
|
2925
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2926
|
+
Processing by HomeController#index as HTML
|
2927
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2928
|
+
Rendered home/index.html.erb within layouts/application (30.1ms)
|
2929
|
+
Completed 200 OK in 31ms (Views: 31.1ms | ActiveRecord: 0.1ms)
|
2930
|
+
|
2931
|
+
|
2932
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2933
|
+
Processing by HomeController#index as HTML
|
2934
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2935
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
2936
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
2937
|
+
|
2938
|
+
|
2939
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2940
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2941
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2942
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2943
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2944
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.0ms)
|
2945
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
2946
|
+
|
2947
|
+
|
2948
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2949
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2950
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2951
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2952
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2953
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2954
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
|
2955
|
+
Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms)
|
2956
|
+
|
2957
|
+
|
2958
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2959
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2960
|
+
Parameters: {"user_id"=>"2"}
|
2961
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2962
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2964
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:14.401689', "current_sign_in_at" = '2014-04-09 05:45:14.401689', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:14.402128' WHERE "users"."id" = 2[0m
|
2965
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2966
|
+
Redirected to http://www.example.com/
|
2967
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
2968
|
+
|
2969
|
+
|
2970
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2971
|
+
Processing by HomeController#index as HTML
|
2972
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
2973
|
+
Rendered home/index.html.erb within layouts/application (1.6ms)
|
2974
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2975
|
+
Rendered user_impersonate/_header.html.erb (1.2ms)
|
2976
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
|
2977
|
+
|
2978
|
+
|
2979
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2980
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2981
|
+
Parameters: {"utf8"=>"✓"}
|
2982
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2983
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
2984
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2985
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-04-09 05:45:14.419554', "sign_in_count" = 2, "updated_at" = '2014-04-09 05:45:14.420125' WHERE "users"."id" = 1
|
2986
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2987
|
+
Redirected to http://www.example.com/
|
2988
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
2989
|
+
|
2990
|
+
|
2991
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
|
2992
|
+
Processing by HomeController#index as HTML
|
2993
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2994
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
2995
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
2996
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2997
|
+
Connecting to database specified by database.yml
|
2998
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2999
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
3000
|
+
Redirected to
|
3001
|
+
Redirected to http://test.host/
|
3002
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
3003
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
3004
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3005
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3006
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
3007
|
+
Redirected to
|
3008
|
+
Redirected to http://test.host/
|
3009
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
3010
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3011
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3012
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3013
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
3014
|
+
Completed 401 Unauthorized in 1ms
|
3015
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3016
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3017
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
3018
|
+
Redirected to http://test.host/
|
3019
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
3020
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3021
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3022
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
3023
|
+
Completed 401 Unauthorized in 0ms
|
3024
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3025
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3026
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3027
|
+
Connecting to database specified by database.yml
|
3028
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3029
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3030
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
3031
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')
|
3032
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')[0m
|
3033
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3034
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
3035
|
+
|
3036
|
+
|
3037
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3038
|
+
Processing by Devise::SessionsController#new as HTML
|
3039
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.2ms)
|
3040
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (36.7ms)
|
3041
|
+
Completed 200 OK in 43ms (Views: 42.2ms | ActiveRecord: 0.0ms)
|
3042
|
+
|
3043
|
+
|
3044
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3045
|
+
Processing by Devise::SessionsController#create as HTML
|
3046
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
3047
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
3048
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3049
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:23.650278', "current_sign_in_at" = '2014-04-09 05:45:23.650278', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:23.650974' WHERE "users"."id" = 2
|
3050
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3051
|
+
Redirected to http://www.example.com/
|
3052
|
+
Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
|
3053
|
+
|
3054
|
+
|
3055
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3056
|
+
Processing by HomeController#index as HTML
|
3057
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
3058
|
+
Rendered home/index.html.erb within layouts/application (1.5ms)
|
3059
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
3060
|
+
|
3061
|
+
|
3062
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3063
|
+
Processing by HomeController#index as HTML
|
3064
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
3065
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
3066
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
3067
|
+
|
3068
|
+
|
3069
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3070
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
3071
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
3072
|
+
Redirected to http://www.example.com/
|
3073
|
+
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
3074
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
3075
|
+
|
3076
|
+
|
3077
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3078
|
+
Processing by HomeController#index as HTML
|
3079
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
3080
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
3081
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
3082
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3083
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3084
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3085
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
3086
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')
|
3087
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')[0m
|
3088
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3089
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
3090
|
+
|
3091
|
+
|
3092
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3093
|
+
Processing by Devise::SessionsController#new as HTML
|
3094
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
|
3095
|
+
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
|
3096
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
3097
|
+
|
3098
|
+
|
3099
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3100
|
+
Processing by Devise::SessionsController#create as HTML
|
3101
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
3102
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
3103
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3104
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:23.771116', "current_sign_in_at" = '2014-04-09 05:45:23.771116', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:23.771655' WHERE "users"."id" = 1
|
3105
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3106
|
+
Redirected to http://www.example.com/
|
3107
|
+
Completed 302 Found in 83ms (ActiveRecord: 0.0ms)
|
3108
|
+
|
3109
|
+
|
3110
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3111
|
+
Processing by HomeController#index as HTML
|
3112
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
3113
|
+
Rendered home/index.html.erb within layouts/application (28.8ms)
|
3114
|
+
Completed 200 OK in 30ms (Views: 29.8ms | ActiveRecord: 0.1ms)
|
3115
|
+
|
3116
|
+
|
3117
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3118
|
+
Processing by HomeController#index as HTML
|
3119
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
3120
|
+
Rendered home/index.html.erb within layouts/application (1.5ms)
|
3121
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
3122
|
+
|
3123
|
+
|
3124
|
+
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3125
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
3126
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
3127
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
3128
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
3129
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.0ms)
|
3130
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
3131
|
+
|
3132
|
+
|
3133
|
+
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3134
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
3135
|
+
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
3136
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
3137
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
3138
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
3139
|
+
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
|
3140
|
+
Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms)
|
3141
|
+
|
3142
|
+
|
3143
|
+
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3144
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
3145
|
+
Parameters: {"user_id"=>"2"}
|
3146
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
3147
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
3148
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3149
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:23.832284', "current_sign_in_at" = '2014-04-09 05:45:23.832284', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:23.832668' WHERE "users"."id" = 2[0m
|
3150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3151
|
+
Redirected to http://www.example.com/
|
3152
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
3153
|
+
|
3154
|
+
|
3155
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3156
|
+
Processing by HomeController#index as HTML
|
3157
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
3158
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
3159
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3160
|
+
Rendered user_impersonate/_header.html.erb (1.5ms)
|
3161
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)
|
3162
|
+
|
3163
|
+
|
3164
|
+
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3165
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
3166
|
+
Parameters: {"utf8"=>"✓"}
|
3167
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3168
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
3169
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3170
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "current_sign_in_at" = '2014-04-09 05:45:23.851432', "sign_in_count" = 2, "updated_at" = '2014-04-09 05:45:23.851926' WHERE "users"."id" = 1
|
3171
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3172
|
+
Redirected to http://www.example.com/
|
3173
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
3174
|
+
|
3175
|
+
|
3176
|
+
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
|
3177
|
+
Processing by HomeController#index as HTML
|
3178
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
3179
|
+
Rendered home/index.html.erb within layouts/application (0.9ms)
|
3180
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
3181
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|