user_impersonate2 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/app/helpers/user_impersonate/application_helper.rb +8 -2
  2. data/lib/user_impersonate/devise_helpers.rb +8 -2
  3. data/lib/user_impersonate/version.rb +1 -1
  4. data/test/functional/impersonate_controller_test.rb +50 -0
  5. data/test/unit/helpers/user_impersonate/devise_helpers_test.rb +60 -0
  6. metadata +213 -267
  7. checksums.yaml +0 -7
  8. data/test/dummy-rails3/db/development.sqlite3 +0 -0
  9. data/test/dummy-rails3/db/test.sqlite3 +0 -0
  10. data/test/dummy-rails3/log/development.log +0 -432
  11. data/test/dummy-rails3/log/test.log +0 -3181
  12. data/test/dummy-rails4/db/development.sqlite3 +0 -0
  13. data/test/dummy-rails4/db/test.sqlite3 +0 -0
  14. data/test/dummy-rails4/log/development.log +0 -45
  15. data/test/dummy-rails4/log/test.log +0 -2053
  16. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  17. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
  18. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf +0 -0
  19. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/291faed72d20664326ce265eb8e1ed2f +0 -0
  20. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  21. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  22. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5 +0 -0
  23. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419 +0 -0
  24. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  25. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6 +0 -0
  26. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d +0 -0
  27. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073 +0 -0
  28. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/79203f7770f5d8956dee4606e93f3d65 +0 -0
  29. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199 +0 -0
  30. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e +0 -0
  31. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8 +0 -0
  32. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2 +0 -0
  33. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/a51c3d05425a76a50181d8144764ac8f +0 -0
  34. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e +0 -0
  35. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
  36. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307 +0 -0
  37. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  38. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1 +0 -0
  39. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  40. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0 +0 -0
  41. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208 +0 -0
  42. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  43. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8 +0 -0
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 41f59533772641d18710a8590c923455b2ba8fd7
4
- data.tar.gz: e9f1bf130006f276fd3f63ea05ecdde95831c227
5
- SHA512:
6
- metadata.gz: 4be419909db112d9b44936d852e65ba7f5a9a84ed79b4840b0ddfb393fa156c2f9bdd4bdd86cb920c3d4264bb0bba786ab76b47855e7e03b7c1468e101090547
7
- data.tar.gz: 52570611f69ad24203fa3cce786ec1712efebea4c797a41913c92385ba718a1af12303361c3774be949c5270f7d1ff3f9266bda30a212158a2d1c3f96173e419
Binary file
@@ -1,432 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (3.3ms) select sqlite_version(*)
3
-  (33.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
4
-  (0.0ms) PRAGMA index_list("users")
5
-  (21.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
6
-  (0.1ms) PRAGMA index_list("users")
7
-  (0.0ms) PRAGMA index_info('index_users_on_email')
8
-  (18.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
9
-  (36.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
10
-  (0.1ms) PRAGMA index_list("schema_migrations")
11
-  (19.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12
-  (0.1ms) SELECT version FROM "schema_migrations"
13
-  (22.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
14
-  (17.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
15
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
16
- Connecting to database specified by database.yml
17
-  (0.7ms) select sqlite_version(*)
18
-  (48.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
19
-  (0.0ms) PRAGMA index_list("users")
20
-  (35.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
21
-  (0.1ms) PRAGMA index_list("users")
22
-  (0.0ms) PRAGMA index_info('index_users_on_email')
23
-  (31.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
24
-  (30.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
25
-  (0.1ms) PRAGMA index_list("schema_migrations")
26
-  (41.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
27
-  (0.1ms) SELECT version FROM "schema_migrations"
28
-  (31.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
29
-  (30.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
30
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
31
- Connecting to database specified by database.yml
32
-  (1.1ms) select sqlite_version(*)
33
-  (24.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
34
-  (0.1ms) PRAGMA index_list("users")
35
-  (26.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
36
-  (0.1ms) PRAGMA index_list("users")
37
-  (0.1ms) PRAGMA index_info('index_users_on_email')
38
-  (21.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
39
-  (26.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
40
-  (0.1ms) PRAGMA index_list("schema_migrations")
41
-  (25.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
42
-  (0.1ms) SELECT version FROM "schema_migrations"
43
-  (21.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
44
-  (23.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
45
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
46
- Connecting to database specified by database.yml
47
-  (0.9ms) select sqlite_version(*)
48
-  (18.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
49
-  (0.1ms) PRAGMA index_list("users")
50
-  (16.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
51
-  (0.2ms) PRAGMA index_list("users")
52
-  (0.0ms) PRAGMA index_info('index_users_on_email')
53
-  (40.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
54
-  (28.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
55
-  (0.1ms) PRAGMA index_list("schema_migrations")
56
-  (28.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
57
-  (0.1ms) SELECT version FROM "schema_migrations"
58
-  (16.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
59
-  (26.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
60
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
61
- Connecting to database specified by database.yml
62
-  (0.6ms) select sqlite_version(*)
63
-  (16.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
64
-  (0.1ms) PRAGMA index_list("users")
65
-  (30.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
66
-  (0.1ms) PRAGMA index_list("users")
67
-  (0.0ms) PRAGMA index_info('index_users_on_email')
68
-  (24.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
69
-  (15.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
70
-  (0.0ms) PRAGMA index_list("schema_migrations")
71
-  (15.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
72
-  (0.1ms) SELECT version FROM "schema_migrations"
73
-  (31.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
74
-  (24.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
75
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
76
- Connecting to database specified by database.yml
77
-  (0.6ms) select sqlite_version(*)
78
-  (32.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
79
-  (0.0ms) PRAGMA index_list("users")
80
-  (24.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
81
-  (0.1ms) PRAGMA index_list("users")
82
-  (0.0ms) PRAGMA index_info('index_users_on_email')
83
-  (18.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
84
-  (21.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
85
-  (0.0ms) PRAGMA index_list("schema_migrations")
86
-  (15.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
87
-  (0.1ms) SELECT version FROM "schema_migrations"
88
-  (20.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
89
-  (14.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
90
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
91
- Connecting to database specified by database.yml
92
-  (0.6ms) select sqlite_version(*)
93
-  (36.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
94
-  (0.0ms) PRAGMA index_list("users")
95
-  (35.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
96
-  (0.2ms) PRAGMA index_list("users")
97
-  (0.0ms) PRAGMA index_info('index_users_on_email')
98
-  (20.6ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
99
-  (21.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
100
-  (0.0ms) PRAGMA index_list("schema_migrations")
101
-  (15.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
102
-  (0.0ms) SELECT version FROM "schema_migrations"
103
-  (31.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
104
-  (25.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
105
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
106
- Connecting to database specified by database.yml
107
-  (0.6ms) select sqlite_version(*)
108
-  (19.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
109
-  (0.0ms) PRAGMA index_list("users")
110
-  (16.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
111
-  (0.1ms) PRAGMA index_list("users")
112
-  (0.0ms) PRAGMA index_info('index_users_on_email')
113
-  (24.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
114
-  (26.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
115
-  (0.0ms) PRAGMA index_list("schema_migrations")
116
-  (21.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
117
-  (0.1ms) SELECT version FROM "schema_migrations"
118
-  (21.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
119
-  (17.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
120
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
121
- Connecting to database specified by database.yml
122
-  (0.8ms) select sqlite_version(*)
123
-  (27.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
124
-  (0.1ms) PRAGMA index_list("users")
125
-  (15.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
126
-  (0.1ms) PRAGMA index_list("users")
127
-  (0.1ms) PRAGMA index_info('index_users_on_email')
128
-  (20.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
129
-  (18.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
130
-  (0.0ms) PRAGMA index_list("schema_migrations")
131
-  (15.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
132
-  (0.1ms) SELECT version FROM "schema_migrations"
133
-  (37.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
134
-  (29.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
135
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
136
- Connecting to database specified by database.yml
137
-  (0.6ms) select sqlite_version(*)
138
-  (28.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
139
-  (0.0ms) PRAGMA index_list("users")
140
-  (31.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
141
-  (0.1ms) PRAGMA index_list("users")
142
-  (0.0ms) PRAGMA index_info('index_users_on_email')
143
-  (44.6ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
144
-  (28.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
145
-  (0.0ms) PRAGMA index_list("schema_migrations")
146
-  (30.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
147
-  (0.1ms) SELECT version FROM "schema_migrations"
148
-  (23.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
149
-  (17.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
150
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
151
- Connecting to database specified by database.yml
152
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
153
-  (0.1ms) select sqlite_version(*)
154
-  (31.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') 
155
-  (0.0ms) PRAGMA index_list("users")
156
-  (21.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
157
-  (0.0ms) PRAGMA index_list("users")
158
-  (0.0ms) PRAGMA index_info('index_users_on_email')
159
-  (30.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
160
-  (23.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
161
-  (0.1ms) PRAGMA index_list("schema_migrations")
162
-  (26.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
163
-  (0.2ms) SELECT version FROM "schema_migrations"
164
-  (32.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
165
-  (25.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
166
- Connecting to database specified by database.yml
167
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
168
-  (0.2ms) select sqlite_version(*)
169
-  (35.2ms) DROP TABLE "users"
170
-  (27.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
171
-  (0.0ms) PRAGMA index_list("users")
172
-  (19.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
173
-  (0.0ms) PRAGMA index_list("users")
174
-  (0.0ms) PRAGMA index_info('index_users_on_email')
175
-  (20.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
176
-  (0.1ms) SELECT version FROM "schema_migrations"
177
- Connecting to database specified by database.yml
178
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
179
-  (0.2ms) select sqlite_version(*)
180
-  (17.9ms) DROP TABLE "users"
181
-  (21.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
182
-  (0.0ms) PRAGMA index_list("users")
183
-  (29.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
184
-  (0.0ms) PRAGMA index_list("users")
185
-  (0.0ms) PRAGMA index_info('index_users_on_email')
186
-  (37.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
187
-  (0.1ms) SELECT version FROM "schema_migrations"
188
- Connecting to database specified by database.yml
189
-  (0.6ms) select sqlite_version(*)
190
-  (22.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
191
-  (0.0ms) PRAGMA index_list("users")
192
-  (15.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
193
-  (0.1ms) PRAGMA index_list("users")
194
-  (0.1ms) PRAGMA index_info('index_users_on_email')
195
-  (29.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
196
-  (23.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
197
-  (0.0ms) PRAGMA index_list("schema_migrations")
198
-  (16.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
199
-  (0.1ms) SELECT version FROM "schema_migrations"
200
-  (29.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
201
-  (15.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
202
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
203
- Connecting to database specified by database.yml
204
-  (0.6ms) select sqlite_version(*)
205
-  (23.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
206
-  (0.0ms) PRAGMA index_list("users")
207
-  (20.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
208
-  (0.1ms) PRAGMA index_list("users")
209
-  (0.0ms) PRAGMA index_info('index_users_on_email')
210
-  (21.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
211
-  (17.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
212
-  (0.0ms) PRAGMA index_list("schema_migrations")
213
-  (15.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
214
-  (0.1ms) SELECT version FROM "schema_migrations"
215
-  (16.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
216
-  (18.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
217
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
218
- Connecting to database specified by database.yml
219
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
220
-  (0.1ms) select sqlite_version(*)
221
-  (18.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') 
222
-  (0.0ms) PRAGMA index_list("users")
223
-  (20.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
224
-  (0.0ms) PRAGMA index_list("users")
225
-  (0.0ms) PRAGMA index_info('index_users_on_email')
226
-  (20.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
227
-  (15.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
228
-  (0.0ms) PRAGMA index_list("schema_migrations")
229
-  (15.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
230
-  (0.1ms) SELECT version FROM "schema_migrations"
231
-  (15.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
232
-  (18.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
233
- Connecting to database specified by database.yml
234
-  (0.6ms) select sqlite_version(*)
235
-  (17.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
236
-  (0.1ms) PRAGMA index_list("users")
237
-  (21.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
238
-  (0.1ms) PRAGMA index_list("users")
239
-  (0.0ms) PRAGMA index_info('index_users_on_email')
240
-  (31.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
241
-  (26.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
242
-  (0.0ms) PRAGMA index_list("schema_migrations")
243
-  (31.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
244
-  (0.1ms) SELECT version FROM "schema_migrations"
245
-  (32.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
246
-  (21.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
247
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
248
- Connecting to database specified by database.yml
249
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
250
-  (0.1ms) select sqlite_version(*)
251
-  (36.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') 
252
-  (0.0ms) PRAGMA index_list("users")
253
-  (26.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
254
-  (0.1ms) PRAGMA index_list("users")
255
-  (0.0ms) PRAGMA index_info('index_users_on_email')
256
-  (33.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
257
-  (29.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
258
-  (0.1ms) PRAGMA index_list("schema_migrations")
259
-  (33.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
260
-  (0.3ms) SELECT version FROM "schema_migrations"
261
-  (19.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
262
-  (18.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
263
- Connecting to database specified by database.yml
264
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
265
-  (0.2ms) select sqlite_version(*)
266
-  (22.4ms) DROP TABLE "users"
267
-  (27.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
268
-  (0.0ms) PRAGMA index_list("users")
269
-  (29.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
270
-  (0.0ms) PRAGMA index_list("users")
271
-  (0.1ms) PRAGMA index_info('index_users_on_email')
272
-  (15.6ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
273
-  (0.1ms) SELECT version FROM "schema_migrations"
274
- Connecting to database specified by database.yml
275
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
276
-  (0.2ms) select sqlite_version(*)
277
-  (20.6ms) DROP TABLE "users"
278
-  (15.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
279
-  (0.0ms) PRAGMA index_list("users")
280
-  (20.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
281
-  (0.0ms) PRAGMA index_list("users")
282
-  (0.0ms) PRAGMA index_info('index_users_on_email')
283
-  (14.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
284
-  (0.0ms) SELECT version FROM "schema_migrations"
285
- Connecting to database specified by database.yml
286
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
287
-  (0.2ms) select sqlite_version(*)
288
-  (32.9ms) DROP TABLE "users"
289
-  (23.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
290
-  (0.0ms) PRAGMA index_list("users")
291
-  (21.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
292
-  (0.0ms) PRAGMA index_list("users")
293
-  (0.0ms) PRAGMA index_info('index_users_on_email')
294
-  (25.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
295
-  (0.1ms) SELECT version FROM "schema_migrations"
296
- Connecting to database specified by database.yml
297
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
298
-  (0.2ms) select sqlite_version(*)
299
-  (33.3ms) DROP TABLE "users"
300
-  (32.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
301
-  (0.0ms) PRAGMA index_list("users")
302
-  (24.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
303
-  (0.0ms) PRAGMA index_list("users")
304
-  (0.0ms) PRAGMA index_info('index_users_on_email')
305
-  (25.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
306
-  (0.1ms) SELECT version FROM "schema_migrations"
307
- Connecting to database specified by database.yml
308
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
309
-  (0.2ms) select sqlite_version(*)
310
-  (15.7ms) DROP TABLE "users"
311
-  (25.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
312
-  (0.0ms) PRAGMA index_list("users")
313
-  (20.6ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
314
-  (0.1ms) PRAGMA index_list("users")
315
-  (0.0ms) PRAGMA index_info('index_users_on_email')
316
-  (24.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
317
-  (0.1ms) SELECT version FROM "schema_migrations"
318
- Connecting to database specified by database.yml
319
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
320
-  (0.2ms) select sqlite_version(*)
321
-  (36.5ms) DROP TABLE "users"
322
-  (31.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
323
-  (0.0ms) PRAGMA index_list("users")
324
-  (15.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
325
-  (0.1ms) PRAGMA index_list("users")
326
-  (0.0ms) PRAGMA index_info('index_users_on_email')
327
-  (31.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
328
-  (0.1ms) SELECT version FROM "schema_migrations"
329
- Connecting to database specified by database.yml
330
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
331
-  (0.2ms) select sqlite_version(*)
332
-  (21.7ms) DROP TABLE "users"
333
-  (15.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
334
-  (0.0ms) PRAGMA index_list("users")
335
-  (15.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
336
-  (0.1ms) PRAGMA index_list("users")
337
-  (0.0ms) PRAGMA index_info('index_users_on_email')
338
-  (15.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
339
-  (0.1ms) SELECT version FROM "schema_migrations"
340
- Connecting to database specified by database.yml
341
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
342
-  (0.2ms) select sqlite_version(*)
343
-  (26.5ms) DROP TABLE "users"
344
-  (20.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
345
-  (0.0ms) PRAGMA index_list("users")
346
-  (30.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
347
-  (0.0ms) PRAGMA index_list("users")
348
-  (0.0ms) PRAGMA index_info('index_users_on_email')
349
-  (24.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
350
-  (0.1ms) SELECT version FROM "schema_migrations"
351
- Connecting to database specified by database.yml
352
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
353
-  (0.2ms) select sqlite_version(*)
354
-  (34.3ms) DROP TABLE "users"
355
-  (21.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
356
-  (0.0ms) PRAGMA index_list("users")
357
-  (15.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
358
-  (0.0ms) PRAGMA index_list("users")
359
-  (0.0ms) PRAGMA index_info('index_users_on_email')
360
-  (22.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
361
-  (0.1ms) SELECT version FROM "schema_migrations"
362
- Connecting to database specified by database.yml
363
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
364
-  (0.2ms) select sqlite_version(*)
365
-  (17.4ms) DROP TABLE "users"
366
-  (15.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
367
-  (0.0ms) PRAGMA index_list("users")
368
-  (35.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
369
-  (0.0ms) PRAGMA index_list("users")
370
-  (0.0ms) PRAGMA index_info('index_users_on_email')
371
-  (32.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
372
-  (0.3ms) SELECT version FROM "schema_migrations"
373
- Connecting to database specified by database.yml
374
-  (1.1ms) select sqlite_version(*)
375
-  (36.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
376
-  (0.0ms) PRAGMA index_list("users")
377
-  (26.6ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
378
-  (0.1ms) PRAGMA index_list("users")
379
-  (0.0ms) PRAGMA index_info('index_users_on_email')
380
-  (32.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
381
-  (34.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
382
-  (0.0ms) PRAGMA index_list("schema_migrations")
383
-  (30.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
384
-  (0.1ms) SELECT version FROM "schema_migrations"
385
-  (32.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
386
-  (32.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
387
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
388
- Connecting to database specified by database.yml
389
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
390
-  (0.1ms) select sqlite_version(*)
391
-  (31.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') 
392
-  (0.0ms) PRAGMA index_list("users")
393
-  (28.6ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
394
-  (0.1ms) PRAGMA index_list("users")
395
-  (0.0ms) PRAGMA index_info('index_users_on_email')
396
-  (24.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
397
-  (20.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
398
-  (0.0ms) PRAGMA index_list("schema_migrations")
399
-  (40.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
400
-  (0.1ms) SELECT version FROM "schema_migrations"
401
-  (37.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
402
-  (31.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
403
- Connecting to database specified by database.yml
404
-  (0.6ms) select sqlite_version(*)
405
-  (16.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f')
406
-  (0.0ms) PRAGMA index_list("users")
407
-  (14.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
408
-  (0.1ms) PRAGMA index_list("users")
409
-  (0.0ms) PRAGMA index_info('index_users_on_email')
410
-  (34.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
411
-  (31.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
412
-  (0.0ms) PRAGMA index_list("schema_migrations")
413
-  (36.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
414
-  (0.0ms) SELECT version FROM "schema_migrations"
415
-  (32.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
416
-  (32.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
417
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
418
- Connecting to database specified by database.yml
419
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
420
-  (0.1ms) select sqlite_version(*)
421
-  (29.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') 
422
-  (0.0ms) PRAGMA index_list("users")
423
-  (22.4ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
424
-  (0.0ms) PRAGMA index_list("users")
425
-  (0.0ms) PRAGMA index_info('index_users_on_email')
426
-  (24.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
427
-  (24.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
428
-  (0.0ms) PRAGMA index_list("schema_migrations")
429
-  (24.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
430
-  (0.0ms) SELECT version FROM "schema_migrations"
431
-  (25.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914184123')
432
-  (23.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
@@ -1,3181 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (0.3ms) begin transaction
3
- Processing by UserImpersonate::ImpersonateController#create as HTML
4
- Completed 500 Internal Server Error in 0ms
5
-  (0.1ms) rollback transaction
6
-  (0.0ms) begin transaction
7
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
8
- Completed 500 Internal Server Error in 0ms
9
-  (0.1ms) rollback transaction
10
-  (0.1ms) begin transaction
11
-  (0.0ms) rollback transaction
12
-  (0.0ms) begin transaction
13
- Processing by UserImpersonate::ImpersonateController#index as HTML
14
- Completed 500 Internal Server Error in 0ms
15
-  (0.1ms) rollback transaction
16
-  (0.1ms) begin transaction
17
-  (0.1ms) rollback transaction
18
- Connecting to database specified by database.yml
19
-  (0.3ms) begin transaction
20
- Processing by UserImpersonate::ImpersonateController#create as HTML
21
- Completed 500 Internal Server Error in 0ms
22
-  (0.1ms) rollback transaction
23
-  (0.0ms) begin transaction
24
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
25
- Redirected to http://test.host/
26
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
27
-  (0.1ms) rollback transaction
28
-  (0.1ms) begin transaction
29
-  (0.0ms) rollback transaction
30
-  (0.0ms) begin transaction
31
- Processing by UserImpersonate::ImpersonateController#index as HTML
32
- Completed 500 Internal Server Error in 0ms
33
-  (0.0ms) rollback transaction
34
-  (0.1ms) begin transaction
35
-  (0.0ms) rollback transaction
36
- Connecting to database specified by database.yml
37
-  (0.4ms) begin transaction
38
- Processing by UserImpersonate::ImpersonateController#create as HTML
39
- Completed 500 Internal Server Error in 1ms
40
-  (0.1ms) rollback transaction
41
-  (0.2ms) begin transaction
42
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
43
- Redirected to http://test.host/
44
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
45
-  (0.1ms) rollback transaction
46
-  (0.0ms) begin transaction
47
-  (0.1ms) rollback transaction
48
-  (0.1ms) begin transaction
49
- Processing by UserImpersonate::ImpersonateController#index as HTML
50
- Completed 500 Internal Server Error in 0ms
51
-  (0.1ms) rollback transaction
52
-  (0.1ms) begin transaction
53
-  (0.0ms) rollback transaction
54
- Connecting to database specified by database.yml
55
-  (0.3ms) begin transaction
56
- Processing by UserImpersonate::ImpersonateController#create as HTML
57
- Completed 500 Internal Server Error in 0ms
58
-  (0.1ms) rollback transaction
59
-  (0.1ms) begin transaction
60
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
61
- Completed 500 Internal Server Error in 0ms
62
-  (0.1ms) rollback transaction
63
-  (0.1ms) begin transaction
64
-  (0.0ms) rollback transaction
65
-  (0.1ms) begin transaction
66
- Processing by UserImpersonate::ImpersonateController#index as HTML
67
- Completed 500 Internal Server Error in 0ms
68
-  (0.1ms) rollback transaction
69
-  (0.1ms) begin transaction
70
-  (0.0ms) rollback transaction
71
- Connecting to database specified by database.yml
72
-  (0.3ms) begin transaction
73
- Processing by UserImpersonate::ImpersonateController#create as HTML
74
- Completed 401 Unauthorized in 2ms
75
- Rendered text template (0.0ms)
76
-  (0.1ms) rollback transaction
77
-  (0.0ms) begin transaction
78
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
79
- Completed 401 Unauthorized in 0ms
80
-  (0.0ms) rollback transaction
81
-  (0.0ms) begin transaction
82
-  (0.0ms) rollback transaction
83
-  (0.0ms) begin transaction
84
- Processing by UserImpersonate::ImpersonateController#index as HTML
85
- Completed 401 Unauthorized in 0ms
86
-  (0.0ms) rollback transaction
87
-  (0.0ms) begin transaction
88
-  (0.0ms) rollback transaction
89
- Connecting to database specified by database.yml
90
-  (0.2ms) begin transaction
91
- Processing by UserImpersonate::ImpersonateController#create as HTML
92
- Completed 401 Unauthorized in 1ms
93
- Rendered text template (0.0ms)
94
-  (0.1ms) rollback transaction
95
-  (0.0ms) begin transaction
96
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
97
- Redirected to http://test.host/
98
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
99
-  (0.0ms) rollback transaction
100
-  (0.0ms) begin transaction
101
-  (0.0ms) rollback transaction
102
-  (0.0ms) begin transaction
103
- Processing by UserImpersonate::ImpersonateController#index as HTML
104
- Completed 401 Unauthorized in 1ms
105
-  (0.0ms) rollback transaction
106
-  (0.0ms) begin transaction
107
-  (0.0ms) rollback transaction
108
- Connecting to database specified by database.yml
109
-  (0.3ms) begin transaction
110
- Processing by UserImpersonate::ImpersonateController#create as HTML
111
- Completed 401 Unauthorized in 1ms
112
- Rendered text template (0.0ms)
113
-  (0.1ms) rollback transaction
114
-  (0.0ms) begin transaction
115
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
116
- Redirected to http://test.host/
117
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
118
-  (0.0ms) rollback transaction
119
-  (0.0ms) begin transaction
120
- Processing by UserImpersonate::ImpersonateController#index as HTML
121
- Completed 401 Unauthorized in 0ms
122
-  (0.0ms) rollback transaction
123
-  (0.0ms) begin transaction
124
-  (0.0ms) rollback transaction
125
- Connecting to database specified by database.yml
126
-  (0.3ms) begin transaction
127
- Processing by UserImpersonate::ImpersonateController#create as HTML
128
- Completed 401 Unauthorized in 1ms
129
- Rendered text template (0.0ms)
130
-  (0.1ms) rollback transaction
131
-  (0.0ms) begin transaction
132
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
133
-
134
- ***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
135
-
136
- Redirected to http://test.host/
137
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
138
-  (0.1ms) rollback transaction
139
-  (0.0ms) begin transaction
140
- Processing by UserImpersonate::ImpersonateController#index as HTML
141
- Completed 401 Unauthorized in 0ms
142
-  (0.0ms) rollback transaction
143
- Connecting to database specified by database.yml
144
-  (0.2ms) begin transaction
145
- Processing by UserImpersonate::ImpersonateController#create as HTML
146
- Completed 401 Unauthorized in 1ms
147
- Rendered text template (0.0ms)
148
-  (0.1ms) rollback transaction
149
-  (0.0ms) begin transaction
150
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
151
-
152
- ***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
153
-
154
- Redirected to http://test.host/
155
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
156
-  (0.1ms) rollback transaction
157
-  (0.0ms) begin transaction
158
- Processing by UserImpersonate::ImpersonateController#index as HTML
159
- Completed 401 Unauthorized in 1ms
160
-  (0.1ms) rollback transaction
161
- Connecting to database specified by database.yml
162
-  (0.4ms) begin transaction
163
- Processing by UserImpersonate::ImpersonateController#create as HTML
164
- Completed 401 Unauthorized in 2ms
165
- Rendered text template (0.0ms)
166
-  (0.1ms) rollback transaction
167
-  (0.0ms) begin transaction
168
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
169
- Connecting to database specified by database.yml
170
-  (0.2ms) begin transaction
171
- Processing by UserImpersonate::ImpersonateController#create as HTML
172
- Completed 401 Unauthorized in 1ms
173
- Rendered text template (0.0ms)
174
-  (0.1ms) rollback transaction
175
-  (0.0ms) begin transaction
176
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
177
- Connecting to database specified by database.yml
178
-  (0.3ms) begin transaction
179
- Processing by UserImpersonate::ImpersonateController#create as HTML
180
- Completed 401 Unauthorized in 1ms
181
- Rendered text template (0.0ms)
182
-  (0.1ms) rollback transaction
183
-  (0.0ms) begin transaction
184
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
185
- Connecting to database specified by database.yml
186
-  (0.2ms) begin transaction
187
- Processing by UserImpersonate::ImpersonateController#create as HTML
188
- Completed 401 Unauthorized in 1ms
189
- Rendered text template (0.0ms)
190
-  (0.1ms) rollback transaction
191
-  (0.0ms) begin transaction
192
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
193
- Connecting to database specified by database.yml
194
-  (0.3ms) begin transaction
195
- Processing by UserImpersonate::ImpersonateController#create as HTML
196
- Completed 401 Unauthorized in 1ms
197
- Rendered text template (0.0ms)
198
-  (0.1ms) rollback transaction
199
-  (0.0ms) begin transaction
200
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
201
- Redirected to http://test.host/
202
- Completed 302 Found in 17463ms (ActiveRecord: 0.0ms)
203
-  (0.2ms) rollback transaction
204
-  (0.2ms) begin transaction
205
- Processing by UserImpersonate::ImpersonateController#index as HTML
206
- Completed 401 Unauthorized in 2ms
207
-  (0.2ms) rollback transaction
208
- Connecting to database specified by database.yml
209
-  (0.3ms) begin transaction
210
- Processing by UserImpersonate::ImpersonateController#create as HTML
211
- Completed 401 Unauthorized in 1ms
212
- Rendered text template (0.0ms)
213
-  (0.1ms) rollback transaction
214
-  (0.1ms) begin transaction
215
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
216
- Redirected to http://test.host/
217
- Completed 302 Found in 2019ms (ActiveRecord: 0.0ms)
218
-  (0.2ms) rollback transaction
219
-  (0.3ms) begin transaction
220
- Processing by UserImpersonate::ImpersonateController#index as HTML
221
- Completed 401 Unauthorized in 2ms
222
-  (0.2ms) rollback transaction
223
- Connecting to database specified by database.yml
224
-  (0.4ms) begin transaction
225
-  (0.0ms) SAVEPOINT active_record_1
226
- Fixture Delete (0.1ms) DELETE FROM "users"
227
- Fixture Insert (0.1ms) 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-18 23:16:17', '2014-03-18 23:16:17')
228
- Fixture Insert (0.1ms) INSERT 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-18 23:16:17', '2014-03-18 23:16:17')
229
-  (0.0ms) RELEASE SAVEPOINT active_record_1
230
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
231
-
232
-
233
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
234
- Processing by Devise::SessionsController#new as HTML
235
- 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)
236
- 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 (40.5ms)
237
- Completed 200 OK in 47ms (Views: 46.1ms | ActiveRecord: 0.0ms)
238
-
239
-
240
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
241
- Processing by Devise::SessionsController#create as HTML
242
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
243
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
244
-  (0.0ms) SAVEPOINT active_record_1
245
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:17.630367', "current_sign_in_at" = '2014-03-18 23:16:17.630367', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:17.630997' WHERE "users"."id" = 2
246
-  (0.0ms) RELEASE SAVEPOINT active_record_1
247
- Redirected to http://www.example.com/
248
- Completed 302 Found in 83ms (ActiveRecord: 0.0ms)
249
-
250
-
251
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
252
- Processing by HomeController#index as HTML
253
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
254
- Rendered home/index.html.erb within layouts/application (1.5ms)
255
- Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.1ms)
256
-
257
-
258
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
259
- Processing by HomeController#index as HTML
260
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
261
- Rendered home/index.html.erb within layouts/application (0.7ms)
262
- Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
263
-
264
-
265
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
266
- Processing by UserImpersonate::ImpersonateController#index as HTML
267
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
268
- Redirected to http://www.example.com/
269
- Filter chain halted as :current_user_must_be_staff! rendered or redirected
270
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
271
-
272
-
273
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
274
- Processing by HomeController#index as HTML
275
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
276
- Rendered home/index.html.erb within layouts/application (0.7ms)
277
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
278
-  (0.2ms) rollback transaction
279
-  (0.0ms) begin transaction
280
-  (0.0ms) SAVEPOINT active_record_1
281
- Fixture Delete (0.1ms) DELETE FROM "users"
282
- Fixture Insert (0.1ms) 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-18 23:16:17', '2014-03-18 23:16:17')
283
- Fixture Insert (0.1ms) INSERT 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-18 23:16:17', '2014-03-18 23:16:17')
284
-  (0.0ms) RELEASE SAVEPOINT active_record_1
285
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
286
-
287
-
288
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
289
- Processing by Devise::SessionsController#new as HTML
290
- 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)
291
- 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)
292
- Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
293
-
294
-
295
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
296
- Processing by Devise::SessionsController#create as HTML
297
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
298
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
299
-  (0.1ms) SAVEPOINT active_record_1
300
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:17.782350', "current_sign_in_at" = '2014-03-18 23:16:17.782350', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:17.782892' WHERE "users"."id" = 1
301
-  (0.0ms) RELEASE SAVEPOINT active_record_1
302
- Redirected to http://www.example.com/
303
- Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
304
-
305
-
306
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
307
- Processing by HomeController#index as HTML
308
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
309
- Rendered home/index.html.erb within layouts/application (1.1ms)
310
- Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
311
-
312
-
313
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
314
- Processing by HomeController#index as HTML
315
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
316
- Rendered home/index.html.erb within layouts/application (1.1ms)
317
- Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
318
-
319
-
320
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
321
- Processing by UserImpersonate::ImpersonateController#index as HTML
322
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
323
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
324
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
325
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
326
- Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
327
-
328
-
329
- Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
330
- Processing by UserImpersonate::ImpersonateController#index as HTML
331
- Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
332
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
333
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
334
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
335
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
336
- Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
337
-
338
-
339
- Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
340
- Processing by UserImpersonate::ImpersonateController#create as HTML
341
- Parameters: {"user_id"=>"2"}
342
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
343
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
344
-  (0.1ms) SAVEPOINT active_record_1
345
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:17.812604', "current_sign_in_at" = '2014-03-18 23:16:17.812604', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:17.813083' WHERE "users"."id" = 2
346
-  (0.0ms) RELEASE SAVEPOINT active_record_1
347
- Redirected to http://www.example.com/
348
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
349
-
350
-
351
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
352
- Processing by HomeController#index as HTML
353
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
354
- Rendered home/index.html.erb within layouts/application (0.6ms)
355
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
356
- Rendered user_impersonate/_header.html.erb (1.2ms)
357
- Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
358
-
359
-
360
- Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
361
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
362
- Parameters: {"utf8"=>"✓"}
363
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
364
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
365
-  (0.2ms) SAVEPOINT active_record_1
366
-  (0.4ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:16:19.382613', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:16:19.385571' WHERE "users"."id" = 1
367
-  (0.2ms) RELEASE SAVEPOINT active_record_1
368
- Redirected to http://www.example.com/
369
- Completed 302 Found in 1790ms (ActiveRecord: 1.7ms)
370
-
371
-
372
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:19 -0700
373
- Processing by HomeController#index as HTML
374
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
375
- Rendered home/index.html.erb within layouts/application (5.8ms)
376
- Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.5ms)
377
-  (0.7ms) rollback transaction
378
- Connecting to database specified by database.yml
379
-  (0.4ms) begin transaction
380
- Processing by UserImpersonate::ImpersonateController#create as HTML
381
- Completed 401 Unauthorized in 1ms
382
- Rendered text template (0.0ms)
383
-  (0.1ms) rollback transaction
384
-  (0.0ms) begin transaction
385
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
386
- Redirected to http://test.host/
387
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
388
-  (0.1ms) rollback transaction
389
-  (0.0ms) begin transaction
390
- Processing by UserImpersonate::ImpersonateController#index as HTML
391
- Completed 401 Unauthorized in 0ms
392
-  (0.0ms) rollback transaction
393
- Connecting to database specified by database.yml
394
-  (0.3ms) begin transaction
395
-  (0.0ms) SAVEPOINT active_record_1
396
- Fixture Delete (0.1ms) DELETE FROM "users"
397
- Fixture Insert (0.2ms) 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-18 23:16:50', '2014-03-18 23:16:50')
398
- Fixture Insert (0.1ms) INSERT 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-18 23:16:50', '2014-03-18 23:16:50')
399
-  (0.0ms) RELEASE SAVEPOINT active_record_1
400
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
401
-
402
-
403
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
404
- Processing by Devise::SessionsController#new as HTML
405
- 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)
406
- 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)
407
- Completed 200 OK in 41ms (Views: 40.5ms | ActiveRecord: 0.0ms)
408
-
409
-
410
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
411
- Processing by Devise::SessionsController#create as HTML
412
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
413
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
414
-  (0.0ms) SAVEPOINT active_record_1
415
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:50.609090', "current_sign_in_at" = '2014-03-18 23:16:50.609090', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:50.609774' WHERE "users"."id" = 2
416
-  (0.0ms) RELEASE SAVEPOINT active_record_1
417
- Redirected to http://www.example.com/
418
- Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
419
-
420
-
421
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
422
- Processing by HomeController#index as HTML
423
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
424
- Rendered home/index.html.erb within layouts/application (1.5ms)
425
- Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
426
-
427
-
428
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
429
- Processing by HomeController#index as HTML
430
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
431
- Rendered home/index.html.erb within layouts/application (0.6ms)
432
- Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
433
-
434
-
435
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
436
- Processing by UserImpersonate::ImpersonateController#index as HTML
437
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
438
- Redirected to http://www.example.com/
439
- Filter chain halted as :current_user_must_be_staff! rendered or redirected
440
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
441
-
442
-
443
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
444
- Processing by HomeController#index as HTML
445
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
446
- Rendered home/index.html.erb within layouts/application (0.7ms)
447
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
448
-  (0.2ms) rollback transaction
449
-  (0.0ms) begin transaction
450
-  (0.0ms) SAVEPOINT active_record_1
451
- Fixture Delete (0.1ms) DELETE FROM "users"
452
- Fixture Insert (0.1ms) 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-18 23:16:50', '2014-03-18 23:16:50')
453
- Fixture Insert (0.1ms) INSERT 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-18 23:16:50', '2014-03-18 23:16:50')
454
-  (0.0ms) RELEASE SAVEPOINT active_record_1
455
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
456
-
457
-
458
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
459
- Processing by Devise::SessionsController#new as HTML
460
- 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)
461
- 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)
462
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
463
-
464
-
465
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
466
- Processing by Devise::SessionsController#create as HTML
467
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
468
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
469
-  (0.1ms) SAVEPOINT active_record_1
470
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:50.721631', "current_sign_in_at" = '2014-03-18 23:16:50.721631', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:50.722173' WHERE "users"."id" = 1
471
-  (0.0ms) RELEASE SAVEPOINT active_record_1
472
- Redirected to http://www.example.com/
473
- Completed 302 Found in 78ms (ActiveRecord: 0.0ms)
474
-
475
-
476
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
477
- Processing by HomeController#index as HTML
478
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
479
- Rendered home/index.html.erb within layouts/application (1.1ms)
480
- Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
481
-
482
-
483
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
484
- Processing by HomeController#index as HTML
485
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
486
- Rendered home/index.html.erb within layouts/application (1.1ms)
487
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
488
-
489
-
490
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
491
- Processing by UserImpersonate::ImpersonateController#index as HTML
492
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
493
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
494
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
495
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
496
- Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
497
-
498
-
499
- Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
500
- Processing by UserImpersonate::ImpersonateController#index as HTML
501
- Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
502
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
503
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
504
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
505
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
506
- Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms)
507
-
508
-
509
- Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
510
- Processing by UserImpersonate::ImpersonateController#create as HTML
511
- Parameters: {"user_id"=>"2"}
512
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
513
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
514
-  (0.0ms) SAVEPOINT active_record_1
515
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:50.783985', "current_sign_in_at" = '2014-03-18 23:16:50.783985', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:50.784377' WHERE "users"."id" = 2
516
-  (0.0ms) RELEASE SAVEPOINT active_record_1
517
- Redirected to http://www.example.com/
518
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
519
-
520
-
521
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
522
- Processing by HomeController#index as HTML
523
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
524
- Rendered home/index.html.erb within layouts/application (0.7ms)
525
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
526
- Rendered user_impersonate/_header.html.erb (1.3ms)
527
- Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
528
-
529
-
530
- Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
531
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
532
- Parameters: {"utf8"=>"✓"}
533
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
534
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
535
-  (0.0ms) SAVEPOINT active_record_1
536
-  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:16:50.797905', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:16:50.798367' WHERE "users"."id" = 1
537
-  (0.0ms) RELEASE SAVEPOINT active_record_1
538
- Redirected to http://www.example.com/
539
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
540
-
541
-
542
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
543
- Processing by HomeController#index as HTML
544
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
545
- Rendered home/index.html.erb within layouts/application (0.8ms)
546
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
547
-  (0.2ms) rollback transaction
548
- Connecting to database specified by database.yml
549
-  (0.4ms) begin transaction
550
- Processing by UserImpersonate::ImpersonateController#create as HTML
551
- Completed 401 Unauthorized in 1ms
552
- Rendered text template (0.0ms)
553
-  (0.1ms) rollback transaction
554
-  (0.0ms) begin transaction
555
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
556
- Completed 401 Unauthorized in 0ms
557
-  (0.0ms) rollback transaction
558
-  (0.0ms) begin transaction
559
- Processing by UserImpersonate::ImpersonateController#index as HTML
560
- Completed 401 Unauthorized in 0ms
561
-  (0.0ms) rollback transaction
562
- Connecting to database specified by database.yml
563
-  (0.4ms) begin transaction
564
- Processing by UserImpersonate::ImpersonateController#create as HTML
565
- Completed 401 Unauthorized in 2ms
566
- Rendered text template (0.0ms)
567
-  (0.1ms) rollback transaction
568
-  (0.0ms) begin transaction
569
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
570
- Redirected to http://test.host/
571
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
572
-  (0.1ms) rollback transaction
573
-  (0.0ms) begin transaction
574
- Processing by UserImpersonate::ImpersonateController#index as HTML
575
- Completed 401 Unauthorized in 0ms
576
-  (0.0ms) rollback transaction
577
- Connecting to database specified by database.yml
578
-  (0.3ms) begin transaction
579
-  (0.0ms) SAVEPOINT active_record_1
580
- Fixture Delete (0.1ms) DELETE FROM "users"
581
- Fixture Insert (0.2ms) 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-18 23:17:25', '2014-03-18 23:17:25')
582
- Fixture Insert (0.1ms) INSERT 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-18 23:17:25', '2014-03-18 23:17:25')
583
-  (0.0ms) RELEASE SAVEPOINT active_record_1
584
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
585
-
586
-
587
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
588
- Processing by Devise::SessionsController#new as HTML
589
- 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)
590
- 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)
591
- Completed 200 OK in 41ms (Views: 39.7ms | ActiveRecord: 0.0ms)
592
-
593
-
594
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
595
- Processing by Devise::SessionsController#create as HTML
596
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
597
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
598
-  (0.0ms) SAVEPOINT active_record_1
599
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:17:25.899234', "current_sign_in_at" = '2014-03-18 23:17:25.899234', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:17:25.899878' WHERE "users"."id" = 2
600
-  (0.0ms) RELEASE SAVEPOINT active_record_1
601
- Redirected to http://www.example.com/
602
- Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
603
-
604
-
605
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
606
- Processing by HomeController#index as HTML
607
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
608
- Rendered home/index.html.erb within layouts/application (1.4ms)
609
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
610
-
611
-
612
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
613
- Processing by HomeController#index as HTML
614
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
615
- Rendered home/index.html.erb within layouts/application (0.6ms)
616
- Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
617
-
618
-
619
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
620
- Processing by UserImpersonate::ImpersonateController#index as HTML
621
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
622
- Redirected to http://www.example.com/
623
- Filter chain halted as :current_user_must_be_staff! rendered or redirected
624
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
625
-
626
-
627
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
628
- Processing by HomeController#index as HTML
629
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
630
- Rendered home/index.html.erb within layouts/application (0.7ms)
631
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
632
-  (0.2ms) rollback transaction
633
-  (0.0ms) begin transaction
634
-  (0.0ms) SAVEPOINT active_record_1
635
- Fixture Delete (0.1ms) DELETE FROM "users"
636
- Fixture Insert (0.1ms) 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-18 23:17:25', '2014-03-18 23:17:25')
637
- Fixture Insert (0.1ms) INSERT 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-18 23:17:25', '2014-03-18 23:17:25')
638
-  (0.0ms) RELEASE SAVEPOINT active_record_1
639
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
640
-
641
-
642
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
643
- Processing by Devise::SessionsController#new as HTML
644
- 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)
645
- 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.3ms)
646
- Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
647
-
648
-
649
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
650
- Processing by Devise::SessionsController#create as HTML
651
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
652
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
653
-  (0.0ms) SAVEPOINT active_record_1
654
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:17:26.016416', "current_sign_in_at" = '2014-03-18 23:17:26.016416', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:17:26.016835' WHERE "users"."id" = 1
655
-  (0.0ms) RELEASE SAVEPOINT active_record_1
656
- Redirected to http://www.example.com/
657
- Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
658
-
659
-
660
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
661
- Processing by HomeController#index as HTML
662
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
663
- Rendered home/index.html.erb within layouts/application (1.1ms)
664
- Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
665
-
666
-
667
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
668
- Processing by HomeController#index as HTML
669
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
670
- Rendered home/index.html.erb within layouts/application (1.1ms)
671
- Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
672
-
673
-
674
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
675
- Processing by UserImpersonate::ImpersonateController#index as HTML
676
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
677
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
678
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
679
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.8ms)
680
- Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
681
-
682
-
683
- Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
684
- Processing by UserImpersonate::ImpersonateController#index as HTML
685
- Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
686
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
687
-  (0.2ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
688
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
689
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
690
- Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.5ms)
691
-
692
-
693
- Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
694
- Processing by UserImpersonate::ImpersonateController#create as HTML
695
- Parameters: {"user_id"=>"2"}
696
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
697
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
698
-  (0.0ms) SAVEPOINT active_record_1
699
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:17:26.079401', "current_sign_in_at" = '2014-03-18 23:17:26.079401', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:17:26.079820' WHERE "users"."id" = 2
700
-  (0.0ms) RELEASE SAVEPOINT active_record_1
701
- Redirected to http://www.example.com/
702
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
703
-
704
-
705
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
706
- Processing by HomeController#index as HTML
707
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
708
- Rendered home/index.html.erb within layouts/application (0.7ms)
709
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
710
- Rendered user_impersonate/_header.html.erb (1.2ms)
711
- Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
712
-
713
-
714
- Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
715
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
716
- Parameters: {"utf8"=>"✓"}
717
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
718
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
719
-  (0.0ms) SAVEPOINT active_record_1
720
-  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:17:26.093972', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:17:26.094503' WHERE "users"."id" = 1
721
-  (0.0ms) RELEASE SAVEPOINT active_record_1
722
- Redirected to http://www.example.com/
723
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
724
-
725
-
726
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
727
- Processing by HomeController#index as HTML
728
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
729
- Rendered home/index.html.erb within layouts/application (0.9ms)
730
- Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
731
-  (0.1ms) rollback transaction
732
- Connecting to database specified by database.yml
733
-  (0.3ms) begin transaction
734
- Processing by UserImpersonate::ImpersonateController#create as HTML
735
- Completed 401 Unauthorized in 1ms
736
- Rendered text template (0.0ms)
737
-  (0.1ms) rollback transaction
738
-  (0.0ms) begin transaction
739
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
740
- Completed 401 Unauthorized in 0ms
741
-  (0.0ms) rollback transaction
742
-  (0.0ms) begin transaction
743
- Processing by UserImpersonate::ImpersonateController#index as HTML
744
- Completed 401 Unauthorized in 0ms
745
-  (0.0ms) rollback transaction
746
-  (0.0ms) begin transaction
747
-  (0.1ms) rollback transaction
748
- Connecting to database specified by database.yml
749
-  (0.2ms) begin transaction
750
- Processing by UserImpersonate::ImpersonateController#create as HTML
751
- Completed 401 Unauthorized in 1ms
752
- Rendered text template (0.0ms)
753
-  (0.1ms) rollback transaction
754
-  (0.0ms) begin transaction
755
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
756
- Redirected to http://test.host/
757
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
758
-  (0.0ms) rollback transaction
759
-  (0.0ms) begin transaction
760
- Processing by UserImpersonate::ImpersonateController#index as HTML
761
- Completed 401 Unauthorized in 0ms
762
-  (0.0ms) rollback transaction
763
-  (0.0ms) begin transaction
764
-  (0.0ms) rollback transaction
765
- Connecting to database specified by database.yml
766
-  (0.3ms) begin transaction
767
-  (0.0ms) SAVEPOINT active_record_1
768
- Fixture Delete (0.1ms) DELETE FROM "users"
769
- Fixture Insert (0.1ms) 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-18 23:24:41', '2014-03-18 23:24:41')
770
- Fixture Insert (0.1ms) INSERT 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-18 23:24:41', '2014-03-18 23:24:41')
771
-  (0.0ms) RELEASE SAVEPOINT active_record_1
772
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
773
-
774
-
775
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
776
- Processing by Devise::SessionsController#new as HTML
777
- 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.4ms)
778
- 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.7ms)
779
- Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.0ms)
780
-
781
-
782
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
783
- Processing by Devise::SessionsController#create as HTML
784
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
785
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
786
-  (0.0ms) SAVEPOINT active_record_1
787
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:24:41.507772', "current_sign_in_at" = '2014-03-18 23:24:41.507772', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:24:41.508422' WHERE "users"."id" = 2
788
-  (0.0ms) RELEASE SAVEPOINT active_record_1
789
- Redirected to http://www.example.com/
790
- Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
791
-
792
-
793
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
794
- Processing by HomeController#index as HTML
795
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
796
- Rendered home/index.html.erb within layouts/application (1.4ms)
797
- Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
798
-
799
-
800
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
801
- Processing by HomeController#index as HTML
802
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
803
- Rendered home/index.html.erb within layouts/application (0.7ms)
804
- Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
805
-
806
-
807
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
808
- Processing by UserImpersonate::ImpersonateController#index as HTML
809
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
810
- Redirected to http://www.example.com/
811
- Filter chain halted as :current_user_must_be_staff! rendered or redirected
812
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
813
-
814
-
815
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
816
- Processing by HomeController#index as HTML
817
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
818
- Rendered home/index.html.erb within layouts/application (0.7ms)
819
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
820
-  (0.1ms) rollback transaction
821
-  (0.0ms) begin transaction
822
-  (0.0ms) SAVEPOINT active_record_1
823
- Fixture Delete (0.1ms) DELETE FROM "users"
824
- Fixture Insert (0.1ms) 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-18 23:24:41', '2014-03-18 23:24:41')
825
- Fixture Insert (0.1ms) INSERT 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-18 23:24:41', '2014-03-18 23:24:41')
826
-  (0.0ms) RELEASE SAVEPOINT active_record_1
827
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
828
-
829
-
830
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
831
- Processing by Devise::SessionsController#new as HTML
832
- 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)
833
- 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.5ms)
834
- Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
835
-
836
-
837
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
838
- Processing by Devise::SessionsController#create as HTML
839
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
840
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
841
-  (0.1ms) SAVEPOINT active_record_1
842
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:24:41.624439', "current_sign_in_at" = '2014-03-18 23:24:41.624439', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:24:41.624968' WHERE "users"."id" = 1
843
-  (0.0ms) RELEASE SAVEPOINT active_record_1
844
- Redirected to http://www.example.com/
845
- Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
846
-
847
-
848
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
849
- Processing by HomeController#index as HTML
850
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
851
- Rendered home/index.html.erb within layouts/application (1.1ms)
852
- Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
853
-
854
-
855
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
856
- Processing by HomeController#index as HTML
857
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
858
- Rendered home/index.html.erb within layouts/application (1.1ms)
859
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
860
-
861
-
862
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
863
- Processing by UserImpersonate::ImpersonateController#index as HTML
864
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
865
-  (0.5ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
866
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
867
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.0ms)
868
- Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.9ms)
869
-
870
-
871
- Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
872
- Processing by UserImpersonate::ImpersonateController#index as HTML
873
- Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
874
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
875
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
876
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
877
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
878
- Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)
879
-
880
-
881
- Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
882
- Processing by UserImpersonate::ImpersonateController#create as HTML
883
- Parameters: {"user_id"=>"2"}
884
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
885
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
886
-  (0.0ms) SAVEPOINT active_record_1
887
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:24:41.690099', "current_sign_in_at" = '2014-03-18 23:24:41.690099', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:24:41.690534' WHERE "users"."id" = 2
888
-  (0.0ms) RELEASE SAVEPOINT active_record_1
889
- Redirected to http://www.example.com/
890
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
891
-
892
-
893
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
894
- Processing by HomeController#index as HTML
895
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
896
- Rendered home/index.html.erb within layouts/application (0.7ms)
897
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
898
- Rendered user_impersonate/_header.html.erb (1.4ms)
899
- Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
900
-
901
-
902
- Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
903
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
904
- Parameters: {"utf8"=>"✓"}
905
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
906
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
907
-  (0.0ms) SAVEPOINT active_record_1
908
-  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:24:41.703696', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:24:41.704176' WHERE "users"."id" = 1
909
-  (0.0ms) RELEASE SAVEPOINT active_record_1
910
- Redirected to http://www.example.com/
911
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
912
-
913
-
914
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
915
- Processing by HomeController#index as HTML
916
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
917
- Rendered home/index.html.erb within layouts/application (0.9ms)
918
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
919
-  (0.1ms) rollback transaction
920
- Connecting to database specified by database.yml
921
-  (0.3ms) begin transaction
922
- Processing by UserImpersonate::ImpersonateController#create as HTML
923
- Completed 401 Unauthorized in 1ms
924
- Rendered text template (0.0ms)
925
-  (0.1ms) rollback transaction
926
-  (0.0ms) begin transaction
927
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
928
- Redirected to http://test.host/
929
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
930
-  (0.0ms) rollback transaction
931
-  (0.0ms) begin transaction
932
- Processing by UserImpersonate::ImpersonateController#index as HTML
933
- Completed 401 Unauthorized in 0ms
934
-  (0.0ms) rollback transaction
935
-  (0.0ms) begin transaction
936
-  (0.0ms) rollback transaction
937
- Connecting to database specified by database.yml
938
-  (0.3ms) begin transaction
939
-  (0.0ms) SAVEPOINT active_record_1
940
- Fixture Delete (0.1ms) DELETE FROM "users"
941
- Fixture Insert (0.1ms) 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-18 23:52:44', '2014-03-18 23:52:44')
942
- Fixture Insert (0.1ms) INSERT 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-18 23:52:44', '2014-03-18 23:52:44')
943
-  (0.0ms) RELEASE SAVEPOINT active_record_1
944
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
945
-
946
-
947
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
948
- Processing by Devise::SessionsController#new as HTML
949
- 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)
950
- 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.6ms)
951
- Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
952
-
953
-
954
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
955
- Processing by Devise::SessionsController#create as HTML
956
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
957
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
958
-  (0.0ms) SAVEPOINT active_record_1
959
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:52:44.699277', "current_sign_in_at" = '2014-03-18 23:52:44.699277', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:52:44.700034' WHERE "users"."id" = 2
960
-  (0.0ms) RELEASE SAVEPOINT active_record_1
961
- Redirected to http://www.example.com/
962
- Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
963
-
964
-
965
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
966
- Processing by HomeController#index as HTML
967
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
968
- Rendered home/index.html.erb within layouts/application (1.5ms)
969
- Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
970
-
971
-
972
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
973
- Processing by HomeController#index as HTML
974
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
975
- Rendered home/index.html.erb within layouts/application (0.7ms)
976
- Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
977
-
978
-
979
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
980
- Processing by UserImpersonate::ImpersonateController#index as HTML
981
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
982
- Redirected to http://www.example.com/
983
- Filter chain halted as :current_user_must_be_staff! rendered or redirected
984
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
985
-
986
-
987
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
988
- Processing by HomeController#index as HTML
989
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
990
- Rendered home/index.html.erb within layouts/application (0.8ms)
991
- Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
992
-  (0.1ms) rollback transaction
993
-  (0.0ms) begin transaction
994
-  (0.0ms) SAVEPOINT active_record_1
995
- Fixture Delete (0.1ms) DELETE FROM "users"
996
- Fixture Insert (0.1ms) 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-18 23:52:44', '2014-03-18 23:52:44')
997
- Fixture Insert (0.1ms) INSERT 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-18 23:52:44', '2014-03-18 23:52:44')
998
-  (0.0ms) RELEASE SAVEPOINT active_record_1
999
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1000
-
1001
-
1002
- Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1003
- Processing by Devise::SessionsController#new as HTML
1004
- 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)
1005
- 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)
1006
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1007
-
1008
-
1009
- Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1010
- Processing by Devise::SessionsController#create as HTML
1011
- Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1012
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1013
-  (0.1ms) SAVEPOINT active_record_1
1014
-  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:52:44.812688', "current_sign_in_at" = '2014-03-18 23:52:44.812688', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:52:44.813253' WHERE "users"."id" = 1
1015
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1016
- Redirected to http://www.example.com/
1017
- Completed 302 Found in 78ms (ActiveRecord: 0.0ms)
1018
-
1019
-
1020
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1021
- Processing by HomeController#index as HTML
1022
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1023
- Rendered home/index.html.erb within layouts/application (1.2ms)
1024
- Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
1025
-
1026
-
1027
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1028
- Processing by HomeController#index as HTML
1029
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1030
- Rendered home/index.html.erb within layouts/application (1.1ms)
1031
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1032
-
1033
-
1034
- Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1035
- Processing by UserImpersonate::ImpersonateController#index as HTML
1036
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1037
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1038
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1039
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (4.0ms)
1040
- Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
1041
-
1042
-
1043
- Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1044
- Processing by UserImpersonate::ImpersonateController#index as HTML
1045
- Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1046
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1047
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1048
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1049
- Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
1050
- Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
1051
-
1052
-
1053
- Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1054
- Processing by UserImpersonate::ImpersonateController#create as HTML
1055
- Parameters: {"user_id"=>"2"}
1056
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1057
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1058
-  (0.0ms) SAVEPOINT active_record_1
1059
-  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:52:44.875245', "current_sign_in_at" = '2014-03-18 23:52:44.875245', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:52:44.875642' WHERE "users"."id" = 2
1060
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1061
- Redirected to http://www.example.com/
1062
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1063
-
1064
-
1065
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1066
- Processing by HomeController#index as HTML
1067
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1068
- Rendered home/index.html.erb within layouts/application (0.7ms)
1069
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1070
- Rendered user_impersonate/_header.html.erb (1.3ms)
1071
- Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
1072
-
1073
-
1074
- Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1075
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1076
- Parameters: {"utf8"=>"✓"}
1077
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1078
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1079
-  (0.0ms) SAVEPOINT active_record_1
1080
-  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:52:44.888400', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:52:44.888849' WHERE "users"."id" = 1
1081
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1082
- Redirected to http://www.example.com/
1083
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1084
-
1085
-
1086
- Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1087
- Processing by HomeController#index as HTML
1088
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1089
- Rendered home/index.html.erb within layouts/application (0.9ms)
1090
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1091
-  (0.1ms) rollback transaction
1092
- Connecting to database specified by database.yml
1093
-  (0.8ms) begin transaction
1094
- Processing by UserImpersonate::ImpersonateController#create as HTML
1095
- Completed 401 Unauthorized in 2ms
1096
- Rendered text template (0.0ms)
1097
-  (0.1ms) rollback transaction
1098
-  (0.0ms) begin transaction
1099
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1100
- Redirected to http://test.host/
1101
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1102
-  (0.1ms) rollback transaction
1103
-  (0.0ms) begin transaction
1104
- Processing by UserImpersonate::ImpersonateController#index as HTML
1105
- Completed 401 Unauthorized in 0ms
1106
-  (0.0ms) rollback transaction
1107
-  (0.0ms) begin transaction
1108
-  (0.0ms) rollback transaction
1109
- Connecting to database specified by database.yml
1110
-  (0.4ms) begin transaction
1111
-  (0.0ms) SAVEPOINT active_record_1
1112
- Fixture Delete (0.1ms) DELETE FROM "users"
1113
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1115
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1116
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1130
-  (0.0ms) SAVEPOINT active_record_1
1131
-  (1.5ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1162
- Rendered home/index.html.erb within layouts/application (0.8ms)
1163
- Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1164
-  (0.2ms) rollback transaction
1165
-  (0.0ms) begin transaction
1166
-  (0.0ms) SAVEPOINT active_record_1
1167
- Fixture Delete (0.1ms) DELETE FROM "users"
1168
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1170
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1171
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1185
-  (0.0ms) SAVEPOINT active_record_1
1186
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1209
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1210
- User Load (0.1ms) 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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1219
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1220
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1229
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1230
-  (0.0ms) SAVEPOINT active_record_1
1231
-  (0.1ms) UPDATE "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
1232
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1240
- Rendered home/index.html.erb within layouts/application (0.9ms)
1241
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1250
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1251
-  (0.0ms) SAVEPOINT active_record_1
1252
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
1264
- Connecting to database specified by database.yml
1265
-  (0.3ms) begin transaction
1266
- Processing by UserImpersonate::ImpersonateController#create as HTML
1267
- Completed 401 Unauthorized in 1ms
1268
- Rendered text template (0.0ms)
1269
-  (0.1ms) rollback transaction
1270
-  (0.0ms) begin transaction
1271
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1272
- Redirected to http://test.host/
1273
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1274
-  (0.0ms) rollback transaction
1275
-  (0.0ms) begin transaction
1276
- Processing by UserImpersonate::ImpersonateController#index as HTML
1277
- Completed 401 Unauthorized in 0ms
1278
-  (0.0ms) rollback transaction
1279
-  (0.0ms) begin transaction
1280
-  (0.0ms) rollback transaction
1281
- Connecting to database specified by database.yml
1282
-  (0.3ms) begin transaction
1283
-  (0.0ms) SAVEPOINT active_record_1
1284
- Fixture Delete (0.1ms) DELETE FROM "users"
1285
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1287
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1288
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1302
-  (0.1ms) SAVEPOINT active_record_1
1303
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.2ms) 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
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.2ms) 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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1334
- Rendered home/index.html.erb within layouts/application (1.2ms)
1335
- Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
1336
-  (0.2ms) rollback transaction
1337
-  (0.0ms) begin transaction
1338
-  (0.1ms) SAVEPOINT active_record_1
1339
- Fixture Delete (0.1ms) DELETE FROM "users"
1340
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1342
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1343
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1357
-  (0.1ms) SAVEPOINT active_record_1
1358
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1381
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1382
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1391
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1392
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1401
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1402
-  (0.0ms) SAVEPOINT active_record_1
1403
-  (0.1ms) UPDATE "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
1404
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1412
- Rendered home/index.html.erb within layouts/application (0.6ms)
1413
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1422
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1423
-  (0.0ms) SAVEPOINT active_record_1
1424
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
1436
- Connecting to database specified by database.yml
1437
-  (0.3ms) begin transaction
1438
- Processing by UserImpersonate::ImpersonateController#create as HTML
1439
- Completed 401 Unauthorized in 1ms
1440
- Rendered text template (0.0ms)
1441
-  (0.1ms) rollback transaction
1442
-  (0.0ms) begin transaction
1443
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1444
- Redirected to http://test.host/
1445
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1446
-  (0.0ms) rollback transaction
1447
-  (0.0ms) begin transaction
1448
- Processing by UserImpersonate::ImpersonateController#index as HTML
1449
- Completed 401 Unauthorized in 0ms
1450
-  (0.0ms) rollback transaction
1451
-  (0.1ms) begin transaction
1452
-  (0.0ms) rollback transaction
1453
- Connecting to database specified by database.yml
1454
-  (0.4ms) begin transaction
1455
-  (0.0ms) SAVEPOINT active_record_1
1456
- Fixture Delete (0.1ms) DELETE FROM "users"
1457
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1459
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1460
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1474
-  (0.0ms) SAVEPOINT active_record_1
1475
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1506
- Rendered home/index.html.erb within layouts/application (0.6ms)
1507
- Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1508
-  (0.1ms) rollback transaction
1509
-  (0.0ms) begin transaction
1510
-  (0.0ms) SAVEPOINT active_record_1
1511
- Fixture Delete (0.1ms) DELETE FROM "users"
1512
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1514
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1515
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1529
-  (0.1ms) SAVEPOINT active_record_1
1530
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1553
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1554
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1563
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1564
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1573
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1574
-  (0.0ms) SAVEPOINT active_record_1
1575
-  (0.1ms) UPDATE "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
1576
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1584
- Rendered home/index.html.erb within layouts/application (0.6ms)
1585
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1594
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1595
-  (0.0ms) SAVEPOINT active_record_1
1596
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
1608
- Connecting to database specified by database.yml
1609
-  (0.4ms) begin transaction
1610
- Processing by UserImpersonate::ImpersonateController#create as HTML
1611
- Completed 401 Unauthorized in 1ms
1612
- Rendered text template (0.0ms)
1613
-  (0.0ms) rollback transaction
1614
-  (0.0ms) begin transaction
1615
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1616
- Redirected to http://test.host/
1617
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1618
-  (0.0ms) rollback transaction
1619
-  (0.0ms) begin transaction
1620
- Processing by UserImpersonate::ImpersonateController#index as HTML
1621
- Completed 401 Unauthorized in 0ms
1622
-  (0.0ms) rollback transaction
1623
-  (0.1ms) begin transaction
1624
-  (0.0ms) rollback transaction
1625
- Connecting to database specified by database.yml
1626
-  (0.3ms) begin transaction
1627
-  (0.0ms) SAVEPOINT active_record_1
1628
- Fixture Delete (0.1ms) DELETE FROM "users"
1629
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1631
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1632
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1646
-  (0.0ms) SAVEPOINT active_record_1
1647
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1678
- Rendered home/index.html.erb within layouts/application (0.6ms)
1679
- Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
1680
-  (0.1ms) rollback transaction
1681
-  (0.0ms) begin transaction
1682
-  (0.1ms) SAVEPOINT active_record_1
1683
- Fixture Delete (0.1ms) DELETE FROM "users"
1684
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1686
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1687
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1701
-  (0.1ms) SAVEPOINT active_record_1
1702
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1725
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1726
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1735
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1736
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1745
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1746
-  (0.0ms) SAVEPOINT active_record_1
1747
-  (0.1ms) UPDATE "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
1748
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1756
- Rendered home/index.html.erb within layouts/application (0.7ms)
1757
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1766
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1767
-  (0.0ms) SAVEPOINT active_record_1
1768
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.1ms) rollback transaction
1780
- Connecting to database specified by database.yml
1781
-  (0.4ms) begin transaction
1782
- Processing by UserImpersonate::ImpersonateController#create as HTML
1783
- Completed 401 Unauthorized in 1ms
1784
- Rendered text template (0.0ms)
1785
-  (0.1ms) rollback transaction
1786
-  (0.0ms) begin transaction
1787
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1788
- Redirected to http://test.host/
1789
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1790
-  (0.0ms) rollback transaction
1791
-  (0.0ms) begin transaction
1792
- Processing by UserImpersonate::ImpersonateController#index as HTML
1793
- Completed 401 Unauthorized in 0ms
1794
-  (0.0ms) rollback transaction
1795
-  (0.0ms) begin transaction
1796
-  (0.0ms) rollback transaction
1797
- Connecting to database specified by database.yml
1798
-  (0.4ms) begin transaction
1799
-  (0.0ms) SAVEPOINT active_record_1
1800
- Fixture Delete (0.1ms) DELETE FROM "users"
1801
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1803
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1804
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1818
-  (0.0ms) SAVEPOINT active_record_1
1819
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1850
- Rendered home/index.html.erb within layouts/application (0.7ms)
1851
- Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1852
-  (0.2ms) rollback transaction
1853
-  (0.0ms) begin transaction
1854
-  (0.0ms) SAVEPOINT active_record_1
1855
- Fixture Delete (0.1ms) DELETE FROM "users"
1856
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1858
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1859
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1873
-  (0.1ms) SAVEPOINT active_record_1
1874
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1897
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1898
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1907
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1908
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1917
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1918
-  (0.0ms) SAVEPOINT active_record_1
1919
-  (0.1ms) UPDATE "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
1920
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1928
- Rendered home/index.html.erb within layouts/application (0.6ms)
1929
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1938
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1939
-  (0.0ms) SAVEPOINT active_record_1
1940
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
1952
- Connecting to database specified by database.yml
1953
-  (0.4ms) begin transaction
1954
- Processing by UserImpersonate::ImpersonateController#create as HTML
1955
- Completed 401 Unauthorized in 1ms
1956
- Rendered text template (0.0ms)
1957
-  (0.1ms) rollback transaction
1958
-  (0.0ms) begin transaction
1959
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
1960
- Redirected to http://test.host/
1961
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1962
-  (0.0ms) rollback transaction
1963
-  (0.0ms) begin transaction
1964
- Processing by UserImpersonate::ImpersonateController#index as HTML
1965
- Completed 401 Unauthorized in 0ms
1966
-  (0.0ms) rollback transaction
1967
-  (0.0ms) begin transaction
1968
-  (0.0ms) rollback transaction
1969
- Connecting to database specified by database.yml
1970
-  (0.4ms) begin transaction
1971
-  (0.0ms) SAVEPOINT active_record_1
1972
- Fixture Delete (0.2ms) DELETE FROM "users"
1973
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
1975
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1976
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1990
-  (0.0ms) SAVEPOINT active_record_1
1991
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2022
- Rendered home/index.html.erb within layouts/application (0.6ms)
2023
- Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2024
-  (0.1ms) rollback transaction
2025
-  (0.0ms) begin transaction
2026
-  (0.0ms) SAVEPOINT active_record_1
2027
- Fixture Delete (0.1ms) DELETE FROM "users"
2028
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2030
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2031
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2045
-  (0.1ms) SAVEPOINT active_record_1
2046
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2069
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2070
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2079
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2080
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2089
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2090
-  (0.0ms) SAVEPOINT active_record_1
2091
-  (0.1ms) UPDATE "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
2092
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2100
- Rendered home/index.html.erb within layouts/application (0.6ms)
2101
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2110
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2111
-  (0.0ms) SAVEPOINT active_record_1
2112
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
2124
- Connecting to database specified by database.yml
2125
-  (0.3ms) begin transaction
2126
- Processing by UserImpersonate::ImpersonateController#create as HTML
2127
- Completed 401 Unauthorized in 1ms
2128
- Rendered text template (0.0ms)
2129
-  (0.1ms) rollback transaction
2130
-  (0.0ms) begin transaction
2131
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
2132
- Redirected to http://test.host/
2133
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2134
-  (0.0ms) rollback transaction
2135
-  (0.0ms) begin transaction
2136
- Processing by UserImpersonate::ImpersonateController#index as HTML
2137
- Completed 401 Unauthorized in 0ms
2138
-  (0.0ms) rollback transaction
2139
-  (0.0ms) begin transaction
2140
-  (0.0ms) rollback transaction
2141
- Connecting to database specified by database.yml
2142
-  (0.3ms) begin transaction
2143
-  (0.0ms) SAVEPOINT active_record_1
2144
- Fixture Delete (0.1ms) DELETE FROM "users"
2145
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2147
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2148
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2162
-  (0.0ms) SAVEPOINT active_record_1
2163
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2194
- Rendered home/index.html.erb within layouts/application (0.7ms)
2195
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2196
-  (0.1ms) rollback transaction
2197
-  (0.0ms) begin transaction
2198
-  (0.0ms) SAVEPOINT active_record_1
2199
- Fixture Delete (0.1ms) DELETE FROM "users"
2200
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2202
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2217
-  (0.1ms) SAVEPOINT active_record_1
2218
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2241
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2242
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2251
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2252
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2261
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2262
-  (0.0ms) SAVEPOINT active_record_1
2263
-  (0.1ms) UPDATE "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
2264
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2272
- Rendered home/index.html.erb within layouts/application (0.7ms)
2273
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2282
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2283
-  (0.0ms) SAVEPOINT active_record_1
2284
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
2296
- Connecting to database specified by database.yml
2297
-  (0.4ms) begin transaction
2298
- Processing by UserImpersonate::ImpersonateController#create as HTML
2299
- Completed 401 Unauthorized in 1ms
2300
- Rendered text template (0.0ms)
2301
-  (0.1ms) rollback transaction
2302
-  (0.0ms) begin transaction
2303
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
2304
- Redirected to http://test.host/
2305
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2306
-  (0.0ms) rollback transaction
2307
-  (0.0ms) begin transaction
2308
- Processing by UserImpersonate::ImpersonateController#index as HTML
2309
- Completed 401 Unauthorized in 0ms
2310
-  (0.0ms) rollback transaction
2311
-  (0.0ms) begin transaction
2312
-  (0.0ms) rollback transaction
2313
- Connecting to database specified by database.yml
2314
-  (0.4ms) begin transaction
2315
-  (0.0ms) SAVEPOINT active_record_1
2316
- Fixture Delete (0.1ms) DELETE FROM "users"
2317
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2319
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2320
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2334
-  (0.0ms) SAVEPOINT active_record_1
2335
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2366
- Rendered home/index.html.erb within layouts/application (0.6ms)
2367
- Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2368
-  (0.2ms) rollback transaction
2369
-  (0.0ms) begin transaction
2370
-  (0.0ms) SAVEPOINT active_record_1
2371
- Fixture Delete (0.1ms) DELETE FROM "users"
2372
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2374
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2375
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2389
-  (0.1ms) SAVEPOINT active_record_1
2390
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2413
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2414
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2423
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2424
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2433
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2434
-  (0.0ms) SAVEPOINT active_record_1
2435
-  (0.1ms) UPDATE "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
2436
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2444
- Rendered home/index.html.erb within layouts/application (0.6ms)
2445
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2454
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2455
-  (0.0ms) SAVEPOINT active_record_1
2456
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.1ms) rollback transaction
2468
- Connecting to database specified by database.yml
2469
-  (0.4ms) begin transaction
2470
- Processing by UserImpersonate::ImpersonateController#create as HTML
2471
- Completed 401 Unauthorized in 1ms
2472
- Rendered text template (0.0ms)
2473
-  (0.1ms) rollback transaction
2474
-  (0.0ms) begin transaction
2475
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
2476
- Redirected to http://test.host/
2477
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2478
-  (0.0ms) rollback transaction
2479
-  (0.0ms) begin transaction
2480
- Processing by UserImpersonate::ImpersonateController#index as HTML
2481
- Completed 401 Unauthorized in 0ms
2482
-  (0.0ms) rollback transaction
2483
-  (0.1ms) begin transaction
2484
-  (0.0ms) rollback transaction
2485
- Connecting to database specified by database.yml
2486
-  (0.3ms) begin transaction
2487
-  (0.0ms) SAVEPOINT active_record_1
2488
- Fixture Delete (0.1ms) DELETE FROM "users"
2489
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2491
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2492
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2506
-  (0.1ms) SAVEPOINT active_record_1
2507
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.2ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2538
- Rendered home/index.html.erb within layouts/application (0.9ms)
2539
- Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2540
-  (0.2ms) rollback transaction
2541
-  (0.0ms) begin transaction
2542
-  (0.0ms) SAVEPOINT active_record_1
2543
- Fixture Delete (0.1ms) DELETE FROM "users"
2544
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2546
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2547
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2561
-  (0.1ms) SAVEPOINT active_record_1
2562
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2585
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2586
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2595
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2596
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2605
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2606
-  (0.0ms) SAVEPOINT active_record_1
2607
-  (0.1ms) UPDATE "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
2608
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2616
- Rendered home/index.html.erb within layouts/application (0.8ms)
2617
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2626
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2627
-  (0.0ms) SAVEPOINT active_record_1
2628
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
2640
- Connecting to database specified by database.yml
2641
-  (0.3ms) begin transaction
2642
- Processing by UserImpersonate::ImpersonateController#create as HTML
2643
- Completed 401 Unauthorized in 1ms
2644
- Rendered text template (0.0ms)
2645
-  (0.0ms) rollback transaction
2646
-  (0.0ms) begin transaction
2647
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
2648
- Redirected to http://test.host/
2649
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2650
-  (0.0ms) rollback transaction
2651
-  (0.0ms) begin transaction
2652
- Processing by UserImpersonate::ImpersonateController#index as HTML
2653
- Completed 401 Unauthorized in 0ms
2654
-  (0.0ms) rollback transaction
2655
-  (0.0ms) begin transaction
2656
-  (0.0ms) rollback transaction
2657
- Connecting to database specified by database.yml
2658
-  (0.3ms) begin transaction
2659
-  (0.0ms) SAVEPOINT active_record_1
2660
- Fixture Delete (0.1ms) DELETE FROM "users"
2661
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2663
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2664
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2678
-  (0.0ms) SAVEPOINT active_record_1
2679
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2710
- Rendered home/index.html.erb within layouts/application (0.6ms)
2711
- Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
2712
-  (0.2ms) rollback transaction
2713
-  (0.0ms) begin transaction
2714
-  (0.0ms) SAVEPOINT active_record_1
2715
- Fixture Delete (0.1ms) DELETE FROM "users"
2716
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2718
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2719
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2733
-  (0.1ms) SAVEPOINT active_record_1
2734
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2757
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2758
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2767
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2768
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2777
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2778
-  (0.0ms) SAVEPOINT active_record_1
2779
-  (0.1ms) UPDATE "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
2780
-  (0.0ms) 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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2788
- Rendered home/index.html.erb within layouts/application (0.9ms)
2789
- User Load (0.1ms) 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
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2798
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2799
-  (0.0ms) SAVEPOINT active_record_1
2800
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.2ms) rollback transaction
2812
- Connecting to database specified by database.yml
2813
-  (0.3ms) begin transaction
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
-  (0.1ms) rollback transaction
2820
-  (0.0ms) begin transaction
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
-  (0.0ms) rollback transaction
2827
-  (0.0ms) begin transaction
2828
- Processing by UserImpersonate::ImpersonateController#create as HTML
2829
- Completed 401 Unauthorized in 2ms
2830
-  (0.1ms) rollback transaction
2831
-  (0.0ms) begin transaction
2832
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
2833
- Redirected to http://test.host/
2834
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2835
-  (0.0ms) rollback transaction
2836
-  (0.3ms) begin transaction
2837
- Processing by UserImpersonate::ImpersonateController#index as HTML
2838
- Completed 401 Unauthorized in 0ms
2839
-  (0.0ms) rollback transaction
2840
-  (0.0ms) begin transaction
2841
-  (0.0ms) rollback transaction
2842
- Connecting to database specified by database.yml
2843
-  (0.5ms) begin transaction
2844
-  (0.0ms) SAVEPOINT active_record_1
2845
- Fixture Delete (0.1ms) DELETE FROM "users"
2846
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2848
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2849
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2863
-  (0.0ms) SAVEPOINT active_record_1
2864
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2895
- Rendered home/index.html.erb within layouts/application (0.7ms)
2896
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2897
-  (0.3ms) rollback transaction
2898
-  (0.0ms) begin transaction
2899
-  (0.0ms) SAVEPOINT active_record_1
2900
- Fixture Delete (0.1ms) DELETE FROM "users"
2901
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
2903
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2904
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2918
-  (0.0ms) SAVEPOINT active_record_1
2919
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2942
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2943
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2952
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2953
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2962
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2963
-  (0.0ms) SAVEPOINT active_record_1
2964
-  (0.1ms) UPDATE "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
2965
-  (0.0ms) 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
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2973
- Rendered home/index.html.erb within layouts/application (1.6ms)
2974
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2983
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2984
-  (0.0ms) SAVEPOINT active_record_1
2985
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.4ms) rollback transaction
2997
- Connecting to database specified by database.yml
2998
-  (0.4ms) begin transaction
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
-  (0.1ms) rollback transaction
3005
-  (0.0ms) begin transaction
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
-  (0.0ms) rollback transaction
3012
-  (0.0ms) begin transaction
3013
- Processing by UserImpersonate::ImpersonateController#create as HTML
3014
- Completed 401 Unauthorized in 1ms
3015
-  (0.1ms) rollback transaction
3016
-  (0.0ms) begin transaction
3017
- Processing by UserImpersonate::ImpersonateController#destroy as HTML
3018
- Redirected to http://test.host/
3019
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
3020
-  (0.1ms) rollback transaction
3021
-  (0.0ms) begin transaction
3022
- Processing by UserImpersonate::ImpersonateController#index as HTML
3023
- Completed 401 Unauthorized in 0ms
3024
-  (0.1ms) rollback transaction
3025
-  (0.1ms) begin transaction
3026
-  (0.1ms) rollback transaction
3027
- Connecting to database specified by database.yml
3028
-  (0.3ms) begin transaction
3029
-  (0.0ms) SAVEPOINT active_record_1
3030
- Fixture Delete (0.1ms) DELETE FROM "users"
3031
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
3033
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3034
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
3048
-  (0.0ms) SAVEPOINT active_record_1
3049
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
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
- User Load (0.2ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3080
- Rendered home/index.html.erb within layouts/application (0.7ms)
3081
- Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
3082
-  (0.1ms) rollback transaction
3083
-  (0.0ms) begin transaction
3084
-  (0.0ms) SAVEPOINT active_record_1
3085
- Fixture Delete (0.1ms) DELETE FROM "users"
3086
- Fixture Insert (0.1ms) 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
- Fixture Insert (0.1ms) INSERT 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')
3088
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3089
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
3103
-  (0.1ms) SAVEPOINT active_record_1
3104
-  (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3127
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
3128
- User Load (0.1ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3137
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
3138
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3147
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3148
-  (0.0ms) SAVEPOINT active_record_1
3149
-  (0.1ms) UPDATE "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
3150
-  (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3158
- Rendered home/index.html.erb within layouts/application (0.9ms)
3159
- User Load (0.0ms) 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
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3168
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3169
-  (0.0ms) SAVEPOINT active_record_1
3170
-  (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
- User Load (0.1ms) 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
-  (0.1ms) rollback transaction