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
- make_columns_lazy_loadable columns
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 make_columns_lazy_loadable(columns)
20
- columns.each { |column| define_lazy_load_method_for column }
19
+ def define_lazy_accessors_for(columns)
20
+ columns.each { |column| define_lazy_accessor_for column }
21
21
  end
22
22
 
23
- def define_lazy_load_method_for(column)
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
 
@@ -1,3 +1,3 @@
1
1
  module LazyColumns
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -1228,3 +1228,204 @@ Connecting to database specified by database.yml
1228
1228
  Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1229
1229
  Action Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1230
1230
   (0.3ms) rollback transaction
1231
+ Connecting to database specified by database.yml
1232
+  (0.1ms) begin transaction
1233
+  (0.0ms) SAVEPOINT active_record_1
1234
+ SQL (4.4ms) 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]]
1235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1236
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1237
+  (0.0ms) SAVEPOINT active_record_1
1238
+  (0.2ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:55:07.109569' WHERE "actions"."id" = 18
1239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1240
+  (0.3ms) rollback transaction
1241
+  (0.0ms) begin transaction
1242
+  (0.0ms) SAVEPOINT active_record_1
1243
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1245
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1246
+ Action Load (0.1ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1247
+  (0.3ms) rollback transaction
1248
+  (0.0ms) begin transaction
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.4ms) 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]]
1251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1252
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1253
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
1254
+  (0.3ms) rollback transaction
1255
+  (0.0ms) begin transaction
1256
+  (0.0ms) SAVEPOINT active_record_1
1257
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1259
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1260
+  (0.0ms) SAVEPOINT active_record_1
1261
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1263
+  (0.3ms) rollback transaction
1264
+  (0.0ms) begin transaction
1265
+  (0.0ms) SAVEPOINT active_record_1
1266
+ SQL (0.4ms) 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]]
1267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1268
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1269
+  (0.0ms) SAVEPOINT active_record_1
1270
+ SQL (0.3ms) 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]]
1271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1273
+ ActionWith2LazyColumns Load (0.1ms) SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1274
+ ActionWith2LazyColumns Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1275
+  (0.5ms) rollback transaction
1276
+  (0.0ms) begin transaction
1277
+  (0.0ms) SAVEPOINT active_record_1
1278
+ SQL (0.4ms) 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]]
1279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1280
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1281
+ Action Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1282
+  (0.3ms) rollback transaction
1283
+  (0.0ms) begin transaction
1284
+  (0.0ms) SAVEPOINT active_record_1
1285
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1287
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1288
+  (0.0ms) SAVEPOINT active_record_1
1289
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:55:07.160734' WHERE "actions"."id" = 18
1290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1291
+  (0.3ms) rollback transaction
1292
+  (0.0ms) begin transaction
1293
+  (0.0ms) SAVEPOINT active_record_1
1294
+ SQL (0.5ms) 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]]
1295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1296
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1297
+  (0.4ms) rollback transaction
1298
+ Connecting to database specified by database.yml
1299
+  (0.1ms) begin transaction
1300
+  (0.1ms) SAVEPOINT active_record_1
1301
+ SQL (4.3ms) 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]]
1302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1303
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1304
+  (0.0ms) SAVEPOINT active_record_1
1305
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:13.617167' WHERE "actions"."id" = 18
1306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1307
+  (0.4ms) rollback transaction
1308
+  (0.0ms) begin transaction
1309
+  (0.0ms) SAVEPOINT active_record_1
1310
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1312
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1313
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
1314
+  (0.3ms) rollback transaction
1315
+  (0.0ms) begin transaction
1316
+  (0.0ms) SAVEPOINT active_record_1
1317
+ SQL (0.3ms) 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]]
1318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1319
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1320
+  (0.0ms) SAVEPOINT active_record_1
1321
+ SQL (0.5ms) 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]]
1322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1323
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1324
+ ActionWith2LazyColumns Load (0.1ms) SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1325
+ ActionWith2LazyColumns Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1326
+  (0.5ms) rollback transaction
1327
+  (0.0ms) begin transaction
1328
+  (0.0ms) SAVEPOINT active_record_1
1329
+ SQL (0.4ms) 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]]
1330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1331
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1332
+ Action Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1333
+  (0.4ms) rollback transaction
1334
+  (0.0ms) begin transaction
1335
+  (0.0ms) SAVEPOINT active_record_1
1336
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1338
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1339
+  (0.0ms) SAVEPOINT active_record_1
1340
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1342
+  (0.3ms) rollback transaction
1343
+  (0.0ms) begin transaction
1344
+  (0.0ms) SAVEPOINT active_record_1
1345
+ SQL (0.4ms) 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]]
1346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1348
+  (0.0ms) SAVEPOINT active_record_1
1349
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:13.649449' WHERE "actions"."id" = 18
1350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1351
+  (0.3ms) rollback transaction
1352
+  (0.0ms) begin transaction
1353
+  (0.0ms) SAVEPOINT active_record_1
1354
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1356
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1357
+ Action Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1358
+  (0.3ms) rollback transaction
1359
+  (0.0ms) begin transaction
1360
+  (0.1ms) SAVEPOINT active_record_1
1361
+ SQL (0.5ms) 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]]
1362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1363
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1364
+  (0.4ms) rollback transaction
1365
+ Connecting to database specified by database.yml
1366
+  (0.1ms) begin transaction
1367
+  (0.0ms) SAVEPOINT active_record_1
1368
+ SQL (4.4ms) 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]]
1369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1370
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1371
+ Action Load (0.1ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1372
+  (2.3ms) rollback transaction
1373
+  (0.1ms) begin transaction
1374
+  (0.0ms) SAVEPOINT active_record_1
1375
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1377
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1378
+  (0.0ms) SAVEPOINT active_record_1
1379
+  (0.4ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:59.270064' WHERE "actions"."id" = 18
1380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1381
+  (0.3ms) rollback transaction
1382
+  (0.0ms) begin transaction
1383
+  (0.0ms) SAVEPOINT active_record_1
1384
+ SQL (0.4ms) 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]]
1385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1386
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1387
+  (0.0ms) SAVEPOINT active_record_1
1388
+ SQL (0.3ms) 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]]
1389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1390
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1391
+ ActionWith2LazyColumns Load (0.1ms) SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1392
+ ActionWith2LazyColumns Load (0.0ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
1393
+  (0.5ms) rollback transaction
1394
+  (0.0ms) begin transaction
1395
+  (0.0ms) SAVEPOINT active_record_1
1396
+ SQL (0.4ms) 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]]
1397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1398
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1399
+ Action Load (0.1ms) SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1400
+  (0.4ms) rollback transaction
1401
+  (0.0ms) begin transaction
1402
+  (0.0ms) SAVEPOINT active_record_1
1403
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1405
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1406
+  (0.0ms) SAVEPOINT active_record_1
1407
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-01-13 08:57:59.309387' WHERE "actions"."id" = 18
1408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1409
+  (0.3ms) rollback transaction
1410
+  (0.0ms) begin transaction
1411
+  (0.0ms) SAVEPOINT active_record_1
1412
+ SQL (0.4ms) 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]]
1413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1414
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1415
+  (0.0ms) SAVEPOINT active_record_1
1416
+ SQL (0.4ms) INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1418
+  (0.3ms) rollback transaction
1419
+  (0.1ms) begin transaction
1420
+  (0.0ms) SAVEPOINT active_record_1
1421
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1423
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1424
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
1425
+  (0.3ms) rollback transaction
1426
+  (0.0ms) begin transaction
1427
+  (0.0ms) SAVEPOINT active_record_1
1428
+ SQL (0.4ms) 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]]
1429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1430
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1431
+  (0.3ms) 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.3
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: 151826556132538192
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: 151826556132538192
153
+ hash: 1385215812568397296
154
154
  requirements: []
155
155
  rubyforge_project:
156
156
  rubygems_version: 1.8.24