has_many_polymorphic 2.0.5 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/has_many_polymorphic/has_many_polymorphic.rb +14 -25
- data/lib/has_many_polymorphic/version.rb +7 -1
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +5 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +38 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +17 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +12 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +54 -0
- data/spec/dummy/config/environments/production.rb +91 -0
- data/spec/dummy/config/environments/spec.rb +42 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +56 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/config/secrets.yml +32 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/{db → dummy/db}/schema.rb +6 -6
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +40658 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/{has_many_polymorphic_spec.rb → lib/has_many_polymorphic_spec.rb} +5 -4
- data/spec/spec_helper.rb +22 -7
- data/spec/support/models.rb +13 -10
- metadata +66 -30
- data/spec/db/database.yml +0 -3
- data/spec/debug.log +0 -48
data/spec/db/database.yml
DELETED
data/spec/debug.log
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# Logfile created on 2012-01-26 20:22:32 -0500 by logger.rb/31641
|
2
|
-
[1m[36m (10.0ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
-
[1m[35m (110.0ms)[0m CREATE TABLE "zoos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
4
|
-
[1m[36m (110.0ms)[0m [1mCREATE TABLE "monkies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
5
|
-
[1m[35m (140.0ms)[0m CREATE TABLE "bears" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
6
|
-
[1m[36m (150.0ms)[0m [1mCREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
7
|
-
[1m[35m (150.0ms)[0m CREATE TABLE "zoo_animals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zoo_id" integer, "animal_id" integer, "animal_type" varchar(255))
|
8
|
-
[1m[36m (140.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
9
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
10
|
-
[1m[36m (130.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
11
|
-
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
12
|
-
[1m[36m (130.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
13
|
-
[1m[36m (20.0ms)[0m [1mselect sqlite_version(*)[0m
|
14
|
-
[1m[35m (100.0ms)[0m DROP TABLE "zoos"
|
15
|
-
[1m[36m (110.0ms)[0m [1mCREATE TABLE "zoos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
16
|
-
[1m[35m (110.0ms)[0m DROP TABLE "monkies"
|
17
|
-
[1m[36m (110.0ms)[0m [1mCREATE TABLE "monkies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
18
|
-
[1m[35m (130.0ms)[0m DROP TABLE "bears"
|
19
|
-
[1m[36m (160.0ms)[0m [1mCREATE TABLE "bears" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
20
|
-
[1m[35m (170.0ms)[0m DROP TABLE "birds"
|
21
|
-
[1m[36m (120.0ms)[0m [1mCREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
22
|
-
[1m[35m (120.0ms)[0m DROP TABLE "zoo_animals"
|
23
|
-
[1m[36m (130.0ms)[0m [1mCREATE TABLE "zoo_animals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zoo_id" integer, "animal_id" integer, "animal_type" varchar(255)) [0m
|
24
|
-
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
25
|
-
[1m[36m (10.0ms)[0m [1mselect sqlite_version(*)[0m
|
26
|
-
[1m[35m (100.0ms)[0m DROP TABLE "zoos"
|
27
|
-
[1m[36m (110.0ms)[0m [1mCREATE TABLE "zoos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
28
|
-
[1m[35m (120.0ms)[0m DROP TABLE "monkies"
|
29
|
-
[1m[36m (120.0ms)[0m [1mCREATE TABLE "monkies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
30
|
-
[1m[35m (140.0ms)[0m DROP TABLE "bears"
|
31
|
-
[1m[36m (130.0ms)[0m [1mCREATE TABLE "bears" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
32
|
-
[1m[35m (120.0ms)[0m DROP TABLE "birds"
|
33
|
-
[1m[36m (130.0ms)[0m [1mCREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
34
|
-
[1m[35m (120.0ms)[0m DROP TABLE "zoo_animals"
|
35
|
-
[1m[36m (130.0ms)[0m [1mCREATE TABLE "zoo_animals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zoo_id" integer, "animal_id" integer, "animal_type" varchar(255)) [0m
|
36
|
-
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
37
|
-
[1m[36m (10.0ms)[0m [1mselect sqlite_version(*)[0m
|
38
|
-
[1m[35m (90.0ms)[0m DROP TABLE "zoos"
|
39
|
-
[1m[36m (100.0ms)[0m [1mCREATE TABLE "zoos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
40
|
-
[1m[35m (120.0ms)[0m DROP TABLE "monkies"
|
41
|
-
[1m[36m (110.0ms)[0m [1mCREATE TABLE "monkies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
42
|
-
[1m[35m (120.0ms)[0m DROP TABLE "bears"
|
43
|
-
[1m[36m (120.0ms)[0m [1mCREATE TABLE "bears" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
44
|
-
[1m[35m (120.0ms)[0m DROP TABLE "birds"
|
45
|
-
[1m[36m (170.0ms)[0m [1mCREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
46
|
-
[1m[35m (120.0ms)[0m DROP TABLE "zoo_animals"
|
47
|
-
[1m[36m (130.0ms)[0m [1mCREATE TABLE "zoo_animals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zoo_id" integer, "animal_id" integer, "animal_type" varchar(255)) [0m
|
48
|
-
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|