poly_belongs_to 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de25b801e7764ce33e370776d68fc4ca06971f5f
4
- data.tar.gz: 941c8126368dc1b1f0b9c3242ddbcea9d70bee18
3
+ metadata.gz: a15819e53f8f962178a7dd8157bd12b81a5fcfb2
4
+ data.tar.gz: 938d92a2b99ef933513433446e36df470a8511ee
5
5
  SHA512:
6
- metadata.gz: 6ae16e08acceadb341463dc9202f0a5880f513f415886f0282f6e5a708ee4136b8e6fc02311c12b8478de32cd4e24558854d3e19d882bc8f2b1c2fe92f1e2d29
7
- data.tar.gz: c9ffe3f630bf0cf408418dcb75da63f606c0151db66effb3d37b865e03dd4ee7bfe06f4314eacba3764e51cb5333fdab7f5667193fb2d239481d09eafa009f66
6
+ metadata.gz: f14d4ac30c9bfb4644c155ab3d7d8a4665be9861733e4e2802a0215843d9d23e9bcb064db6a15be9a153a5872c6625d89efee6410197ea774a89cf0d3d0ed389
7
+ data.tar.gz: 9611c73889a26589ec4080953c1e2698143d472d75b6dcfc486de33d2838312c326027682f941d1ef9b5a649ea30e4b9c002bb8c8f3efba95f8cb5edcf2180b1
@@ -52,7 +52,7 @@ module PolyBelongsTo
52
52
  if self.poly?
53
53
  # self.where(["#{self.pbt_id_sym} NOT IN (?) AND #{self.pbt_type_sym} = (?)", type.constantize.pluck(:id), type])
54
54
  accumalitive = nil
55
- self.pluck(self.pbt_type_sym).uniq.each do |type|
55
+ self.pluck(self.pbt_type_sym).uniq.delete_if {|i| !i.constantize.respond_to?(:pluck)}.each do |type|
56
56
  arel_part = self.arel_table[self.pbt_id_sym].not_in(type.constantize.pluck(:id)).and(self.arel_table[self.pbt_type_sym].eq(type))
57
57
  accumalitive = accumalitive.present? ? accumalitive.or(arel_part) : arel_part
58
58
  end
@@ -1,4 +1,4 @@
1
1
  module PolyBelongsTo
2
2
  # VERSION follows symantic versioning rules
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
Binary file
@@ -328715,3 +328715,769 @@ PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
328715
328715
  SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]
328716
328716
   (0.1ms) RELEASE SAVEPOINT active_record_1
328717
328717
   (0.1ms) rollback transaction
328718
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
328719
+  (0.1ms) begin transaction
328720
+ SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.423172"], ["updated_at", "2015-05-02 01:17:37.423172"]]
328721
+  (12.4ms) commit transaction
328722
+  (0.1ms) begin transaction
328723
+ SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 149], ["created_at", "2015-05-02 01:17:37.460917"], ["updated_at", "2015-05-02 01:17:37.460917"]]
328724
+  (12.3ms) commit transaction
328725
+  (0.1ms) begin transaction
328726
+ SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 149], ["created_at", "2015-05-02 01:17:37.486147"], ["updated_at", "2015-05-02 01:17:37.486147"]]
328727
+  (16.9ms) commit transaction
328728
+  (0.1ms) begin transaction
328729
+ SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 149], ["created_at", "2015-05-02 01:17:37.517179"], ["updated_at", "2015-05-02 01:17:37.517179"]]
328730
+  (19.9ms) commit transaction
328731
+  (0.1ms) begin transaction
328732
+ SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 149], ["updated_at", "2015-05-02 01:17:37.539480"], ["id", 149]]
328733
+  (17.3ms) commit transaction
328734
+  (0.1ms) begin transaction
328735
+ Fixture Delete (0.1ms) DELETE FROM "squishies"
328736
+ Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 576421514, 'Address', 761411935)
328737
+ Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 458139734, 'GeoLocation', 343404421)
328738
+ Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 396855775, 'Address', 1057142427)
328739
+ Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 783441669, 'GeoLocation', 102195269)
328740
+ Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 106545386, 'Address', 633598004)
328741
+ Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1061951038, 'GeoLocation', 483796712)
328742
+ Fixture Delete (0.1ms) DELETE FROM "addresses"
328743
+ Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55c1300cb8a8a12f321415db414414c1', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 761411935)
328744
+ Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f89b971027a8e6dbd3eceda335c4f0e6', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1057142427)
328745
+ Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af1b2bc19f17526b6e14fcbd876428c1', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 633598004)
328746
+ Fixture Delete (0.1ms) DELETE FROM "photos"
328747
+ Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0aad7c950452588908cf95debf1ae1d3', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 775134066)
328748
+ Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f2ff771587d1f89111c4a49e75c9978', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 971855462)
328749
+ Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c17926000a57c88e90af7d6e1dc052a', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1032612456)
328750
+ Fixture Delete (0.1ms) DELETE FROM "profiles"
328751
+ Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9d038875705ccd6088ca63ff78c416c2', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 261299535)
328752
+ Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c0b0e117721b3c21e2d476edabc55411', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 478996145)
328753
+ Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '06357749810fd96fedbf69cc32fac097', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 966629572)
328754
+ Fixture Delete (0.1ms) DELETE FROM "tires"
328755
+ Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 438300604, 336964236, 849808553)
328756
+ Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 51822084, 336964236, 849808553)
328757
+ Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 873565849, 336964236, 849808553)
328758
+ Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 712317748, 336964236, 849808553)
328759
+ Fixture Delete (0.1ms) DELETE FROM "geo_locations"
328760
+ Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '489b95d95ab53d210e93bf687675060b', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 343404421)
328761
+ Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '32588c127dd563ca22d56e75c13fdb96', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 102195269)
328762
+ Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '692bd0545c98ff5e61cbc4c792209de2', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 483796712)
328763
+ Fixture Delete (0.1ms) DELETE FROM "phones"
328764
+ Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f321cd4c65dd44c0157357e36cfc53a', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1053526200)
328765
+ Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fcbbed9e0f7f0ca4e4bf475e541bb9c5', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 689259936)
328766
+ Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbeb6590fc22dc550e73e64be9489719', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 762608046)
328767
+ Fixture Delete (0.1ms) DELETE FROM "users"
328768
+ Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 902541635)
328769
+ Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 380377255)
328770
+ Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 619379998)
328771
+ Fixture Delete (0.1ms) DELETE FROM "cars"
328772
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 421646738, 336964236)
328773
+ Fixture Delete (0.1ms) DELETE FROM "tags"
328774
+ Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '933152273e688763802c374495daf1cc', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 884173432)
328775
+ Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cac8491edafcdf4a0838c67c08307a3', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1035759634)
328776
+ Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ec0016e686cc79d820c2bcf61f171a04', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 471587404)
328777
+ Fixture Delete (0.1ms) DELETE FROM "ssns"
328778
+ Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a1183fdfa36e930d629925e8c748468e', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 819246218)
328779
+ Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ad991eb30b5f954c0db721181086faa2', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 970698464)
328780
+ Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c5046475230c6ef38c7735c2e09404a3', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 410780858)
328781
+  (18.7ms) commit transaction
328782
+  (0.1ms) begin transaction
328783
+ -------------------------------------------------------------------------------------------------------
328784
+ PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle
328785
+ -------------------------------------------------------------------------------------------------------
328786
+ Delta Load (0.3ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]]
328787
+ Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]]
328788
+ Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]]
328789
+ Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]]
328790
+  (0.1ms) rollback transaction
328791
+  (0.1ms) begin transaction
328792
+ ----------------------------------------------------------------------------------------------------------------------------------------
328793
+ PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference
328794
+ ----------------------------------------------------------------------------------------------------------------------------------------
328795
+ Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 149]]
328796
+ Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 149]]
328797
+ Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 149]]
328798
+ Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 149]]
328799
+  (0.1ms) rollback transaction
328800
+  (0.1ms) begin transaction
328801
+ ----------------------------------------------------------------
328802
+ PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child
328803
+ ----------------------------------------------------------------
328804
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328805
+  (0.1ms) rollback transaction
328806
+  (0.1ms) begin transaction
328807
+ ---------------------------------------------------------------------
328808
+ PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items
328809
+ ---------------------------------------------------------------------
328810
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328811
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
328812
+ GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
328813
+  (0.1ms) rollback transaction
328814
+  (0.1ms) begin transaction
328815
+ --------------------------------------------------------------------------
328816
+ PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes
328817
+ --------------------------------------------------------------------------
328818
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
328819
+  (0.0ms) rollback transaction
328820
+  (0.0ms) begin transaction
328821
+ ---------------------------------------------------------------------------
328822
+ PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations
328823
+ ---------------------------------------------------------------------------
328824
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
328825
+  (0.0ms) rollback transaction
328826
+  (0.0ms) begin transaction
328827
+ -------------------------------------------------------------------------------------------------------------
328828
+ PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances
328829
+ -------------------------------------------------------------------------------------------------------------
328830
+  (0.0ms) rollback transaction
328831
+  (0.1ms) begin transaction
328832
+ ------------------------------------------------------------
328833
+ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command
328834
+ ------------------------------------------------------------
328835
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328836
+  (0.0ms) rollback transaction
328837
+  (0.0ms) begin transaction
328838
+ ---------------------------------------------------------------------------------
328839
+ PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes
328840
+ ---------------------------------------------------------------------------------
328841
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328842
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]
328843
+  (0.1ms) rollback transaction
328844
+  (0.1ms) begin transaction
328845
+ -------------------------------------------------------------
328846
+ PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness
328847
+ -------------------------------------------------------------
328848
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328849
+  (0.1ms) rollback transaction
328850
+  (0.1ms) begin transaction
328851
+ ---------------------------------------------------------------------------------
328852
+ PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships
328853
+ ---------------------------------------------------------------------------------
328854
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328855
+  (0.1ms) rollback transaction
328856
+  (0.1ms) begin transaction
328857
+ ---------------------------------------------------------------
328858
+ PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness
328859
+ ---------------------------------------------------------------
328860
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]
328861
+  (0.0ms) rollback transaction
328862
+  (0.1ms) begin transaction
328863
+ --------------------------------------------------------------------------------
328864
+ PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy
328865
+ --------------------------------------------------------------------------------
328866
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
328867
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
328868
+ GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
328869
+  (0.1ms) rollback transaction
328870
+  (0.0ms) begin transaction
328871
+ ---------------------------------------------------------------------------------------------------------
328872
+ PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy
328873
+ ---------------------------------------------------------------------------------------------------------
328874
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
328875
+  (0.1ms) rollback transaction
328876
+  (0.0ms) begin transaction
328877
+ ---------------------------------------------------------------------------
328878
+ PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name
328879
+ ---------------------------------------------------------------------------
328880
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]
328881
+  (0.0ms) rollback transaction
328882
+  (0.1ms) begin transaction
328883
+ --------------------------------------------------------------------------------------
328884
+ PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class
328885
+ --------------------------------------------------------------------------------------
328886
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328887
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328888
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328889
+  (0.0ms) rollback transaction
328890
+  (0.0ms) begin transaction
328891
+ ------------------------------------------------------------------------
328892
+ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly
328893
+ ------------------------------------------------------------------------
328894
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328895
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328896
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328897
+  (0.1ms) rollback transaction
328898
+  (0.0ms) begin transaction
328899
+ ------------------------------------------------------------
328900
+ PolyBelongsTo::FakedCollection: test_0009_#first is the item
328901
+ ------------------------------------------------------------
328902
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328903
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328904
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328905
+  (0.0ms) rollback transaction
328906
+  (0.0ms) begin transaction
328907
+ ------------------------------------------------------------------------------------
328908
+ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object
328909
+ ------------------------------------------------------------------------------------
328910
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328911
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328912
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328913
+  (0.1ms) rollback transaction
328914
+  (0.0ms) begin transaction
328915
+ --------------------------------------------------------------------------------
328916
+ PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object
328917
+ --------------------------------------------------------------------------------
328918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328919
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328920
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328921
+  (0.1ms) rollback transaction
328922
+  (0.0ms) begin transaction
328923
+ ---------------------------------------------------------------------
328924
+ PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately
328925
+ ---------------------------------------------------------------------
328926
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328927
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328928
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328929
+  (0.0ms) SAVEPOINT active_record_1
328930
+ SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]
328931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
328932
+  (0.1ms) rollback transaction
328933
+  (0.0ms) begin transaction
328934
+ ----------------------------------------------------------
328935
+ PolyBelongsTo::FakedCollection: test_0004_#all is an Array
328936
+ ----------------------------------------------------------
328937
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328938
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328939
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328940
+  (0.0ms) rollback transaction
328941
+  (0.0ms) begin transaction
328942
+ --------------------------------------------------------------
328943
+ PolyBelongsTo::FakedCollection: test_0008_works with #presence
328944
+ --------------------------------------------------------------
328945
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328946
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328947
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328948
+  (0.1ms) rollback transaction
328949
+  (0.0ms) begin transaction
328950
+ ------------------------------------------------------------------------------------
328951
+ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor
328952
+ ------------------------------------------------------------------------------------
328953
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328954
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328955
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328956
+  (0.0ms) rollback transaction
328957
+  (0.0ms) begin transaction
328958
+ --------------------------------------------------------------------------
328959
+ PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method
328960
+ --------------------------------------------------------------------------
328961
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328962
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328963
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328964
+  (0.1ms) rollback transaction
328965
+  (0.0ms) begin transaction
328966
+ ----------------------------------------------------------------------
328967
+ PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid?
328968
+ ----------------------------------------------------------------------
328969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328970
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328971
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328972
+  (0.1ms) rollback transaction
328973
+  (0.0ms) begin transaction
328974
+ ------------------------------------------------------------------------------------------------
328975
+ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection
328976
+ ------------------------------------------------------------------------------------------------
328977
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328978
+  (0.0ms) rollback transaction
328979
+  (0.0ms) begin transaction
328980
+ -----------------------------------------------------------
328981
+ PolyBelongsTo::FakedCollection: test_0010_#last is the item
328982
+ -----------------------------------------------------------
328983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328984
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328985
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328986
+  (0.0ms) rollback transaction
328987
+  (0.0ms) begin transaction
328988
+ ---------------------------------------------------------------------------
328989
+ PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0
328990
+ ---------------------------------------------------------------------------
328991
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
328992
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
328993
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
328994
+  (0.1ms) rollback transaction
328995
+  (0.0ms) begin transaction
328996
+ -------------------------------------------------------------------------
328997
+ PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many
328998
+ -------------------------------------------------------------------------
328999
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329000
+  (0.0ms) rollback transaction
329001
+  (0.0ms) begin transaction
329002
+ -------------------------------------------------------------------------
329003
+ PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
329004
+ -------------------------------------------------------------------------
329005
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329006
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329007
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329008
+  (0.1ms) SAVEPOINT active_record_1
329009
+ SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]
329010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329011
+  (0.1ms) rollback transaction
329012
+  (0.0ms) begin transaction
329013
+ -----------------------------------------------------------------------
329014
+ PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last
329015
+ -----------------------------------------------------------------------
329016
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329017
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329018
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329019
+  (0.1ms) rollback transaction
329020
+  (0.0ms) begin transaction
329021
+ -----------------------------------------------------------------------------
329022
+ PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object
329023
+ -----------------------------------------------------------------------------
329024
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329025
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329026
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329027
+  (0.0ms) rollback transaction
329028
+  (0.0ms) begin transaction
329029
+ -------------------------------------------------------------------
329030
+ PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately
329031
+ -------------------------------------------------------------------
329032
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329033
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329034
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329035
+  (0.1ms) rollback transaction
329036
+  (0.0ms) begin transaction
329037
+ --------------------------------------------------------------------------------------
329038
+ PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls
329039
+ --------------------------------------------------------------------------------------
329040
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329041
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329042
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329043
+  (0.0ms) rollback transaction
329044
+  (0.0ms) begin transaction
329045
+ -------------------------------------------------------------------
329046
+ PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id
329047
+ -------------------------------------------------------------------
329048
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]]
329049
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329050
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329051
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329052
+  (0.1ms) rollback transaction
329053
+  (0.0ms) begin transaction
329054
+ --------------------------------------------------------------------------
329055
+ PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass
329056
+ --------------------------------------------------------------------------
329057
+  (0.0ms) rollback transaction
329058
+  (0.0ms) begin transaction
329059
+ -----------------------------------------------------------
329060
+ PolyBelongsTo::FakedCollection: test_0005_checks if #empty?
329061
+ -----------------------------------------------------------
329062
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329063
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329064
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329065
+  (0.0ms) rollback transaction
329066
+  (0.1ms) begin transaction
329067
+ --------------------------------------------------------------------------
329068
+ PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present?
329069
+ --------------------------------------------------------------------------
329070
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329071
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
329072
+ Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
329073
+  (0.0ms) rollback transaction
329074
+  (0.0ms) begin transaction
329075
+ ------------------------------------------------------------
329076
+ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build
329077
+ ------------------------------------------------------------
329078
+  (0.1ms) rollback transaction
329079
+  (0.0ms) begin transaction
329080
+ ------------------------------------------------------------------------------
329081
+ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes
329082
+ ------------------------------------------------------------------------------
329083
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329084
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
329085
+  (0.1ms) rollback transaction
329086
+  (0.0ms) begin transaction
329087
+ --------------------------------------------------------------------------------------
329088
+ PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes
329089
+ --------------------------------------------------------------------------------------
329090
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
329091
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
329092
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]
329093
+ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]
329094
+ Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]
329095
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]
329096
+ GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
329097
+ Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]]
329098
+ Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]
329099
+  (0.1ms) rollback transaction
329100
+  (0.0ms) begin transaction
329101
+ -------------------------------------------------------
329102
+ PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build
329103
+ -------------------------------------------------------
329104
+  (0.1ms) rollback transaction
329105
+  (0.1ms) begin transaction
329106
+ ------------------------------------------------------------------------
329107
+ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable
329108
+ ------------------------------------------------------------------------
329109
+ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329110
+  (0.0ms) rollback transaction
329111
+  (0.0ms) begin transaction
329112
+ ------------------------------------------------------------------------------------
329113
+ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id
329114
+ ------------------------------------------------------------------------------------
329115
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329116
+  (0.0ms) rollback transaction
329117
+  (0.0ms) begin transaction
329118
+ --------------------------------------------------------------------------------------------------
329119
+ PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type
329120
+ --------------------------------------------------------------------------------------------------
329121
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329122
+  (0.0ms) rollback transaction
329123
+  (0.0ms) begin transaction
329124
+ ----------------------------------------------------------------------
329125
+ PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user
329126
+ ----------------------------------------------------------------------
329127
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329128
+  (0.0ms) SAVEPOINT active_record_1
329129
+ SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:17:37.853704"], ["updated_at", "2015-05-02 01:17:37.853704"]]
329130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329131
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329132
+  (0.1ms) rollback transaction
329133
+  (0.0ms) begin transaction
329134
+ --------------------------------------------------------------------------------------------
329135
+ PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id
329136
+ --------------------------------------------------------------------------------------------
329137
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329138
+  (0.0ms) rollback transaction
329139
+  (0.0ms) begin transaction
329140
+ -------------------------------------------------------------------------------------------------------------------------
329141
+ PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first
329142
+ -------------------------------------------------------------------------------------------------------------------------
329143
+  (0.0ms) SAVEPOINT active_record_1
329144
+ SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.857442"], ["updated_at", "2015-05-02 01:17:37.857442"]]
329145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329146
+  (0.0ms) SAVEPOINT active_record_1
329147
+ SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 150], ["created_at", "2015-05-02 01:17:37.859360"], ["updated_at", "2015-05-02 01:17:37.859360"]]
329148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329149
+  (0.0ms) SAVEPOINT active_record_1
329150
+ SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 150], ["created_at", "2015-05-02 01:17:37.861296"], ["updated_at", "2015-05-02 01:17:37.861296"]]
329151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
329152
+  (0.0ms) SAVEPOINT active_record_1
329153
+ SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 150], ["created_at", "2015-05-02 01:17:37.863256"], ["updated_at", "2015-05-02 01:17:37.863256"]]
329154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329155
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329156
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329157
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329158
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329159
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329160
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329161
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329162
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329163
+ Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329164
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329165
+  (0.2ms) rollback transaction
329166
+  (0.0ms) begin transaction
329167
+ ----------------------------------------------------------------------------------------------
329168
+ PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship
329169
+ ----------------------------------------------------------------------------------------------
329170
+  (0.0ms) SAVEPOINT active_record_1
329171
+ SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.867755"], ["updated_at", "2015-05-02 01:17:37.867755"]]
329172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329173
+  (0.1ms) rollback transaction
329174
+  (0.0ms) begin transaction
329175
+ -----------------------------------------------------------------
329176
+ PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user
329177
+ -----------------------------------------------------------------
329178
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329179
+  (0.0ms) rollback transaction
329180
+  (0.0ms) begin transaction
329181
+ ---------------------------------------------------------------------
329182
+ PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents
329183
+ ---------------------------------------------------------------------
329184
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]
329185
+  (0.0ms) SAVEPOINT active_record_1
329186
+ SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:17:37.879736"], ["updated_at", "2015-05-02 01:17:37.879736"]]
329187
+ SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:17:37.880924"], ["updated_at", "2015-05-02 01:17:37.880924"]]
329188
+ SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:17:37.881870"], ["updated_at", "2015-05-02 01:17:37.881870"]]
329189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329190
+ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]]
329191
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
329192
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]
329193
+  (0.0ms) SAVEPOINT active_record_1
329194
+ Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]]
329195
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]]
329196
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]]
329197
+ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]]
329198
+ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]]
329199
+ SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]]
329200
+ SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]]
329201
+ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]]
329202
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
329203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329204
+  (0.2ms) rollback transaction
329205
+  (0.0ms) begin transaction
329206
+ -------------------------------------------------------------------
329207
+ PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil
329208
+ -------------------------------------------------------------------
329209
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329210
+  (0.0ms) rollback transaction
329211
+  (0.0ms) begin transaction
329212
+ ---------------------------------------------------------------------
329213
+ PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id
329214
+ ---------------------------------------------------------------------
329215
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329216
+  (0.0ms) rollback transaction
329217
+  (0.0ms) begin transaction
329218
+ ------------------------------------------------------------------------------------
329219
+ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil
329220
+ ------------------------------------------------------------------------------------
329221
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329222
+  (0.0ms) rollback transaction
329223
+  (0.0ms) begin transaction
329224
+ --------------------------------------------------------------------
329225
+ PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil
329226
+ --------------------------------------------------------------------
329227
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329228
+  (0.0ms) rollback transaction
329229
+  (0.0ms) begin transaction
329230
+ ---------------------------------------------------------------------------------
329231
+ PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil
329232
+ ---------------------------------------------------------------------------------
329233
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329234
+  (0.0ms) rollback transaction
329235
+  (0.0ms) begin transaction
329236
+ ------------------------------------------------------------------
329237
+ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil
329238
+ ------------------------------------------------------------------
329239
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329240
+  (0.0ms) rollback transaction
329241
+  (0.0ms) begin transaction
329242
+ ---------------------------------------------------------------------------------------------
329243
+ PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object
329244
+ ---------------------------------------------------------------------------------------------
329245
+  (0.0ms) SAVEPOINT active_record_1
329246
+ SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:17:37.900306"], ["updated_at", "2015-05-02 01:17:37.900306"]]
329247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329248
+  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"
329249
+  (0.1ms) SELECT "phones"."id" FROM "phones"
329250
+  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"
329251
+  (0.1ms) SELECT "addresses"."id" FROM "addresses"
329252
+ Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')
329253
+  (0.0ms) SAVEPOINT active_record_1
329254
+ SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:17:37.905435"], ["updated_at", "2015-05-02 01:17:37.905435"]]
329255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329256
+  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"
329257
+  (0.1ms) SELECT "addresses"."id" FROM "addresses"
329258
+  (0.1ms) SELECT "phones"."id" FROM "phones"
329259
+  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"
329260
+ Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')
329261
+  (0.0ms) SAVEPOINT active_record_1
329262
+ SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:17:37.909063"], ["updated_at", "2015-05-02 01:17:37.909063"]]
329263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329264
+  (0.4ms) SELECT "alphas"."id" FROM "alphas"
329265
+ Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149))
329266
+  (0.2ms) rollback transaction
329267
+  (0.0ms) begin transaction
329268
+ -------------------------------------------------------------
329269
+ PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic
329270
+ -------------------------------------------------------------
329271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329272
+  (0.0ms) rollback transaction
329273
+  (0.1ms) begin transaction
329274
+ -----------------------------------------------------------------------
329275
+ PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile
329276
+ -----------------------------------------------------------------------
329277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329278
+  (0.0ms) SAVEPOINT active_record_1
329279
+ SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:17:37.916149"], ["updated_at", "2015-05-02 01:17:37.916149"]]
329280
+ SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:17:37.917235"], ["updated_at", "2015-05-02 01:17:37.917235"]]
329281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329282
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]
329283
+  (0.1ms) rollback transaction
329284
+  (0.0ms) begin transaction
329285
+ ---------------------------------------------------------------------------
329286
+ PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance
329287
+ ---------------------------------------------------------------------------
329288
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329289
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329290
+  (0.0ms) rollback transaction
329291
+  (0.0ms) begin transaction
329292
+ -----------------------------------------------------------------------
329293
+ PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag
329294
+ -----------------------------------------------------------------------
329295
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329296
+  (0.0ms) rollback transaction
329297
+  (0.0ms) begin transaction
329298
+ ------------------------------------------------------------
329299
+ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic
329300
+ ------------------------------------------------------------
329301
+ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
329302
+  (0.0ms) rollback transaction
329303
+  (0.0ms) begin transaction
329304
+ -------------------------------------------------------------------------------
329305
+ PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id
329306
+ -------------------------------------------------------------------------------
329307
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329308
+  (0.0ms) rollback transaction
329309
+  (0.0ms) begin transaction
329310
+ ----------------------------------------------------------------------
329311
+ PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic
329312
+ ----------------------------------------------------------------------
329313
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]
329314
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
329315
+ Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
329316
+  (0.0ms) rollback transaction
329317
+  (0.0ms) begin transaction
329318
+ ----------------------------------------------------------
329319
+ PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic
329320
+ ----------------------------------------------------------
329321
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329322
+  (0.0ms) rollback transaction
329323
+  (0.0ms) begin transaction
329324
+ ---------------------------------------------------------------------------
329325
+ PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile'
329326
+ ---------------------------------------------------------------------------
329327
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329328
+  (0.0ms) rollback transaction
329329
+  (0.0ms) begin transaction
329330
+ -----------------------------------------------------
329331
+ PolyBelongsTo::Core: test_0008_#pbts multiple parents
329332
+ -----------------------------------------------------
329333
+ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]
329334
+  (0.0ms) rollback transaction
329335
+  (0.0ms) begin transaction
329336
+ ---------------------------------------------------------------------------------------
329337
+ PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes
329338
+ ---------------------------------------------------------------------------------------
329339
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329340
+  (0.0ms) rollback transaction
329341
+  (0.0ms) begin transaction
329342
+ --------------------------------------------------------------------------------------
329343
+ PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone
329344
+ --------------------------------------------------------------------------------------
329345
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
329346
+  (0.0ms) rollback transaction
329347
+  (0.0ms) begin transaction
329348
+ -------------------------------------------------------------------------------------
329349
+ PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil
329350
+ -------------------------------------------------------------------------------------
329351
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329352
+  (0.0ms) rollback transaction
329353
+  (0.0ms) begin transaction
329354
+ -----------------------------------------------------------------------------------
329355
+ PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records
329356
+ -----------------------------------------------------------------------------------
329357
+  (0.0ms) SAVEPOINT active_record_1
329358
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.933225"], ["updated_at", "2015-05-02 01:17:37.933225"]]
329359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
329360
+  (0.1ms) rollback transaction
329361
+  (0.0ms) begin transaction
329362
+ ------------------------------------------
329363
+ PolyBelongsTo::Core: test_0001_is a module
329364
+ ------------------------------------------
329365
+  (0.0ms) rollback transaction
329366
+  (0.0ms) begin transaction
329367
+ ----------------------------------------------------------------
329368
+ PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil
329369
+ ----------------------------------------------------------------
329370
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329371
+  (0.0ms) rollback transaction
329372
+  (0.0ms) begin transaction
329373
+ ------------------------------------------------------------------------------------------
329374
+ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat
329375
+ ------------------------------------------------------------------------------------------
329376
+  (0.0ms) SAVEPOINT active_record_1
329377
+ SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.936628"], ["updated_at", "2015-05-02 01:17:37.936628"]]
329378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
329379
+  (0.0ms) SAVEPOINT active_record_1
329380
+ SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 150], ["created_at", "2015-05-02 01:17:37.938582"], ["updated_at", "2015-05-02 01:17:37.938582"]]
329381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329382
+  (0.1ms) SAVEPOINT active_record_1
329383
+ SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 150], ["created_at", "2015-05-02 01:17:37.940643"], ["updated_at", "2015-05-02 01:17:37.940643"]]
329384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329385
+  (0.0ms) SAVEPOINT active_record_1
329386
+ SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 150], ["created_at", "2015-05-02 01:17:37.942553"], ["updated_at", "2015-05-02 01:17:37.942553"]]
329387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329388
+  (0.0ms) SAVEPOINT active_record_1
329389
+ SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 150], ["updated_at", "2015-05-02 01:17:37.943825"], ["id", 150]]
329390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329391
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329392
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329393
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329394
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329395
+ Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329396
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329397
+ Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329398
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329399
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329400
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329401
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329402
+ Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329403
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329404
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329405
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329406
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329407
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329408
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329409
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329410
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329411
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329412
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329413
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329414
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329415
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329416
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329417
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329418
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329419
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329420
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329421
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329422
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329423
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329424
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329425
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329426
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329427
+ Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
329428
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329429
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329430
+ Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
329431
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329432
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329433
+ Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
329434
+ Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
329435
+  (0.2ms) rollback transaction
329436
+  (0.1ms) begin transaction
329437
+ -------------------------------------------------------------------------
329438
+ PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user
329439
+ -------------------------------------------------------------------------
329440
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329441
+  (0.0ms) rollback transaction
329442
+  (0.1ms) begin transaction
329443
+ ----------------------------------------------------------------
329444
+ PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil
329445
+ ----------------------------------------------------------------
329446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329447
+  (0.1ms) rollback transaction
329448
+  (0.0ms) begin transaction
329449
+ ------------------------------------------------------------------------
329450
+ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name
329451
+ ------------------------------------------------------------------------
329452
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329453
+  (0.1ms) rollback transaction
329454
+  (0.0ms) begin transaction
329455
+ -------------------------------------------------------------------
329456
+ PolyBelongsTo::SingletonSet: test_0004_can tell you what's included
329457
+ -------------------------------------------------------------------
329458
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329459
+  (0.0ms) rollback transaction
329460
+  (0.1ms) begin transaction
329461
+ ------------------------------------------------------
329462
+ PolyBelongsTo::SingletonSet: test_0002_adds with :add?
329463
+ ------------------------------------------------------
329464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329465
+  (0.1ms) rollback transaction
329466
+  (0.0ms) begin transaction
329467
+ -----------------------------------------------------------------------------------------------------------
329468
+ PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name
329469
+ -----------------------------------------------------------------------------------------------------------
329470
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329471
+  (0.0ms) rollback transaction
329472
+  (0.0ms) begin transaction
329473
+ --------------------------------------------------------
329474
+ PolyBelongsTo::SingletonSet: test_0005_flags a duplicate
329475
+ --------------------------------------------------------
329476
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329477
+  (0.0ms) rollback transaction
329478
+  (0.1ms) begin transaction
329479
+ ---------------------------------------------------------------------
329480
+ PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items
329481
+ ---------------------------------------------------------------------
329482
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
329483
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poly_belongs_to
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark