lazy_columns 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ module LazyColumns
|
|
7
7
|
return unless table_exists?
|
8
8
|
columns = columns.collect(&:to_s)
|
9
9
|
exclude_columns_from_default_scope columns
|
10
|
-
|
10
|
+
define_lazy_accessors_for columns
|
11
11
|
end
|
12
12
|
|
13
13
|
private
|
@@ -16,11 +16,11 @@ module LazyColumns
|
|
16
16
|
default_scope select((column_names - columns).map { |column_name| "#{table_name}.#{column_name}" })
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
columns.each { |column|
|
19
|
+
def define_lazy_accessors_for(columns)
|
20
|
+
columns.each { |column| define_lazy_accessor_for column }
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
23
|
+
def define_lazy_accessor_for(column)
|
24
24
|
define_method column do
|
25
25
|
self.reload(select: column) unless has_attribute?(column)
|
26
26
|
read_attribute column
|
@@ -33,7 +33,7 @@ end
|
|
33
33
|
if ActiveRecord::Base.respond_to?(:lazy_load)
|
34
34
|
$stderr.puts "ERROR: Method `.lazy_load` already defined in `ActiveRecord::Base`. This is incompatible with LazyColumns and the plugin will be disabled."
|
35
35
|
else
|
36
|
-
include LazyColumns::ActsAsLazyColumnLoader
|
36
|
+
ActiveRecord::Base.send :include, LazyColumns::ActsAsLazyColumnLoader
|
37
37
|
end
|
38
38
|
|
39
39
|
|
data/lib/lazy_columns/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -1228,3 +1228,204 @@ Connecting to database specified by database.yml
|
|
1228
1228
|
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1229
1229
|
[1m[36mAction Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1230
1230
|
[1m[35m (0.3ms)[0m rollback transaction
|
1231
|
+
Connecting to database specified by database.yml
|
1232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1233
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1234
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1235
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1236
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1238
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:55:07.109569' WHERE "actions"."id" = 18[0m
|
1239
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1240
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1243
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1245
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1246
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1247
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1248
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1250
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1251
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1252
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1253
|
+
[1m[35mAction Load (0.1ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
|
1254
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1257
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1259
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1260
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1261
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some new comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", nil], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1262
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1263
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1264
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1266
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1267
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1268
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1269
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1270
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1272
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1273
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
1274
|
+
[1m[36mActionWith2LazyColumns Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1275
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1276
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1278
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1280
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1281
|
+
[1m[35mAction Load (0.0ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1282
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1283
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1285
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1287
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1289
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:55:07.160734' WHERE "actions"."id" = 18
|
1290
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1291
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1292
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1294
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:55:07 UTC +00:00]]
|
1295
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1296
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1297
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1298
|
+
Connecting to database specified by database.yml
|
1299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1301
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1302
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1303
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1305
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:13.617167' WHERE "actions"."id" = 18[0m
|
1306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1307
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1309
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1310
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1311
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1312
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1313
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1[0m
|
1314
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1316
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1317
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1319
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1320
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1321
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1322
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1323
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1324
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
1325
|
+
[1m[36mActionWith2LazyColumns Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1326
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1327
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1329
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1330
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1331
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1332
|
+
[1m[35mAction Load (0.0ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1333
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1334
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1336
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1338
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1339
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1340
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some new comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", nil], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1341
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1342
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1343
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1345
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1347
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1348
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1349
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:13.649449' WHERE "actions"."id" = 18[0m
|
1350
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1351
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1352
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1353
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1354
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1355
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1356
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1357
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1358
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1360
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1361
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:13 UTC +00:00]]
|
1362
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1363
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1364
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1365
|
+
Connecting to database specified by database.yml
|
1366
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1368
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1369
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1370
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1371
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1372
|
+
[1m[36m (2.3ms)[0m [1mrollback transaction[0m
|
1373
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1374
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1375
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1376
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1378
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1379
|
+
[1m[35m (0.4ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:59.270064' WHERE "actions"."id" = 18
|
1380
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1381
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1382
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1383
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1384
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1385
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1386
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1388
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1389
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1390
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1391
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
1392
|
+
[1m[36mActionWith2LazyColumns Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1393
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1394
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1395
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1396
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1397
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1398
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1399
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1400
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1403
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1404
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1405
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1406
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1407
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:59.309387' WHERE "actions"."id" = 18
|
1408
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1409
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1410
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1411
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1412
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1413
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1414
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1415
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1416
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some new comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", nil], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1417
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1418
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1419
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1420
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1421
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1423
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1424
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1[0m
|
1425
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1426
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1427
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1428
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 13 Jan 2013 08:57:59 UTC +00:00]]
|
1429
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1430
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1431
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazy_columns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
segments:
|
143
143
|
- 0
|
144
|
-
hash:
|
144
|
+
hash: 1385215812568397296
|
145
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
146
|
none: false
|
147
147
|
requirements:
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash:
|
153
|
+
hash: 1385215812568397296
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
156
|
rubygems_version: 1.8.24
|