translatable_records 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.rdoc +5 -8
- data/lib/translatable_records/active_record/base.rb +12 -12
- data/lib/translatable_records/active_record/translatable.rb +10 -14
- data/lib/translatable_records/version.rb +1 -1
- data/test/dummy/config/application.rb +1 -1
- data/test/dummy/db/migrate/20130819155126_create_models.rb +1 -0
- data/test/dummy/db/schema.rb +1 -0
- data/test/dummy/log/development.log +16 -0
- data/test/dummy/log/test.log +719 -0
- data/test/generators_test.rb +1 -1
- data/test/records_test.rb +20 -9
- metadata +19 -21
- data/test/dummy/db/development.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05af5734e652d0b785cd48ba53f395430fc4e248
|
4
|
+
data.tar.gz: 467134ed6c5695932738185040c0cb504a5f0944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed349d8c6bc19c14b1df8cdcb15127ff26ac8cb7a3f8eedfa7ecda32cb1c21e54b9eeef17d762a425333b16724a781f9528a7f41186f4746cedb627f1c1f077d
|
7
|
+
data.tar.gz: f010ff700fe1d44cb3a1703f8223850fc2b65a4652180cd08c59b05ac32f7050ca9702491a4a0db2b82f7ffd7763d06233a16f555f60e02a6dbdd0d2b9f771ca
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
{<img src="https://codeclimate.com/github/
|
1
|
+
{<img src="https://badge.fury.io/rb/translatable_records.png" alt="Gem Version" />}[http://badge.fury.io/rb/translatable_records] {<img src="https://codeclimate.com/github/museways/translatable_records.png" />}[https://codeclimate.com/github/museways/translatable_records] {<img src="https://secure.travis-ci.org/museways/translatable_records.png?branch=master" alt="Build Status" />}[https://travis-ci.org/museways/translatable_records] {<img src="https://gemnasium.com/museways/translatable_records.png" alt="Dependency Status" />}[https://gemnasium.com/museways/translatable_records]
|
2
2
|
|
3
3
|
= Translatable Records
|
4
4
|
|
@@ -28,15 +28,12 @@ Update your db:
|
|
28
28
|
|
29
29
|
(Now you can use that field of the model as usual and any change would be saved using the current I18n.locale)
|
30
30
|
|
31
|
-
If you want to build a translation for each available locale:
|
32
|
-
model_instance.build_translations
|
33
|
-
|
34
|
-
If you want to get another translation:
|
35
|
-
model_instance.translation_by_locale :es
|
36
|
-
|
37
31
|
If you want to change the locale to something different than I18n.locale:
|
38
32
|
model_instance.with_locale :es
|
39
|
-
|
33
|
+
|
34
|
+
If you want to build a translation for each available locale:
|
35
|
+
model_instance.build_translations
|
36
|
+
|
40
37
|
If you want to save multiple translations:
|
41
38
|
<%= f.fields_for 'translations_attributes[]', t do |ff| %>
|
42
39
|
<%= field_set_tag t("languages.#{t.locale}") do %>
|
@@ -6,7 +6,7 @@ module TranslatableRecords
|
|
6
6
|
module ClassMethods
|
7
7
|
|
8
8
|
def translatable?
|
9
|
-
|
9
|
+
translatable_attrs.any?
|
10
10
|
end
|
11
11
|
|
12
12
|
def translatable_attrs
|
@@ -16,7 +16,7 @@ module TranslatableRecords
|
|
16
16
|
def attr_translatable(*args)
|
17
17
|
make_translatable unless translatable?
|
18
18
|
args.each do |name|
|
19
|
-
define_translatable_attribute_methods
|
19
|
+
define_translatable_attribute_methods name
|
20
20
|
translatable_attrs << name
|
21
21
|
end
|
22
22
|
end
|
@@ -24,7 +24,7 @@ module TranslatableRecords
|
|
24
24
|
protected
|
25
25
|
|
26
26
|
def make_translatable
|
27
|
-
|
27
|
+
include TranslatableRecords::ActiveRecord::Translatable
|
28
28
|
default_scope -> { includes(:translations) }
|
29
29
|
attr_accessible :translations_attributes if Rails::VERSION::MAJOR < 4
|
30
30
|
has_many :translations, class_name: "#{name}Translation", autosave: true, dependent: :destroy
|
@@ -32,23 +32,23 @@ module TranslatableRecords
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def define_translatable_attribute_methods(attr)
|
35
|
-
['
|
35
|
+
['setter', 'getter'].each { |method| send "define_translatable_attribute_#{method}", attr }
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
39
|
-
|
40
|
-
define_method
|
38
|
+
def define_translatable_attribute_setter(attr)
|
39
|
+
name = :"#{attr}="
|
40
|
+
define_method name do |value|
|
41
41
|
t = translation_by_locale(current_locale)
|
42
|
-
t ? t.send(
|
42
|
+
t ? t.send(name, value) : translations.build(locale: current_locale.to_s, attr.to_sym => value)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
def
|
46
|
+
def define_translatable_attribute_getter(attr)
|
47
47
|
['', '_was', '_changed?'].each do |suffix|
|
48
|
-
|
49
|
-
define_method
|
48
|
+
name = :"#{attr}#{suffix}"
|
49
|
+
define_method name do
|
50
50
|
t = translation_by_locale(current_locale)
|
51
|
-
t ? t.send(
|
51
|
+
t ? t.send(name) : nil
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -2,29 +2,25 @@ module TranslatableRecords
|
|
2
2
|
module ActiveRecord
|
3
3
|
module Translatable
|
4
4
|
extend ActiveSupport::Concern
|
5
|
-
|
5
|
+
|
6
6
|
def with_locale(locale)
|
7
|
-
@locale = locale
|
7
|
+
@locale = locale.to_sym
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def build_translations
|
11
|
-
I18n.available_locales.each
|
12
|
-
t = translations.find_by_locale(locale)
|
13
|
-
translations.build locale: locale.to_s unless t
|
14
|
-
end
|
11
|
+
I18n.available_locales.each { |locale| translations.build locale: locale.to_s unless translations.find_by_locale(locale) }
|
15
12
|
end
|
16
|
-
|
13
|
+
|
17
14
|
protected
|
18
|
-
|
15
|
+
|
19
16
|
def current_locale
|
20
|
-
|
17
|
+
@locale || I18n.locale
|
21
18
|
end
|
22
|
-
|
19
|
+
|
23
20
|
def translation_by_locale(locale)
|
24
|
-
|
25
|
-
t ? t : translations.find_by_locale(locale)
|
21
|
+
translations.find { |t| t.locale == locale.to_s } || translations.find_by_locale(locale)
|
26
22
|
end
|
27
|
-
|
23
|
+
|
28
24
|
end
|
29
25
|
end
|
30
26
|
end
|
@@ -18,6 +18,6 @@ module Dummy
|
|
18
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
20
|
# config.i18n.default_locale = :de
|
21
|
+
I18n.enforce_available_locales = false
|
21
22
|
end
|
22
23
|
end
|
23
|
-
|
data/test/dummy/db/schema.rb
CHANGED
@@ -25,6 +25,7 @@ ActiveRecord::Schema.define(version: 20130819165249) do
|
|
25
25
|
add_index "model_translations", ["model_id"], name: "index_model_translations_on_model_id"
|
26
26
|
|
27
27
|
create_table "models", force: true do |t|
|
28
|
+
t.string "name"
|
28
29
|
t.datetime "created_at"
|
29
30
|
t.datetime "updated_at"
|
30
31
|
end
|
@@ -168,3 +168,19 @@ Migrating to CreateModelTranslations (20130819165249)
|
|
168
168
|
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
169
169
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
170
170
|
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
171
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
172
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
173
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
174
|
+
Migrating to CreateModels (20130819155126)
|
175
|
+
[1m[35m (0.1ms)[0m begin transaction
|
176
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
177
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
|
178
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
179
|
+
Migrating to CreateModelTranslations (20130819165249)
|
180
|
+
[1m[35m (0.0ms)[0m begin transaction
|
181
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
182
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
183
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
184
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819165249"]]
|
185
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
186
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
data/test/dummy/log/test.log
CHANGED
@@ -614,3 +614,722 @@ RecrodsTest: test_should_edit_associated_translation
|
|
614
614
|
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 19 Aug 2013 16:53:41 UTC +00:00]]
|
615
615
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
616
616
|
[1m[35m (0.0ms)[0m rollback transaction
|
617
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
618
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
619
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
620
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
621
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
622
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
623
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
624
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
625
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
626
|
+
-------------------------------------
|
627
|
+
I18nGeneratorTest: test_should_exists
|
628
|
+
-------------------------------------
|
629
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
631
|
+
------------------------------------------------------
|
632
|
+
RecrodsTest: test_should_create_associated_translation
|
633
|
+
------------------------------------------------------
|
634
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
635
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
636
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
637
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
638
|
+
[1m[35m (0.1ms)[0m begin transaction
|
639
|
+
------------------------------------------------------
|
640
|
+
RecrodsTest: test_should_delete_associated_translation
|
641
|
+
------------------------------------------------------
|
642
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
643
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
644
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
646
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
647
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
|
648
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
649
|
+
[1m[35m (0.0ms)[0m begin transaction
|
650
|
+
----------------------------------------------------
|
651
|
+
RecrodsTest: test_should_edit_associated_translation
|
652
|
+
----------------------------------------------------
|
653
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
654
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
655
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
656
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
657
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
658
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
659
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
660
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
661
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
662
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
663
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
664
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
665
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
666
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
667
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
668
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
669
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
670
|
+
-------------------------------------
|
671
|
+
I18nGeneratorTest: test_should_exists
|
672
|
+
-------------------------------------
|
673
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
674
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
675
|
+
------------------------------------------------------
|
676
|
+
RecrodsTest: test_should_create_associated_translation
|
677
|
+
------------------------------------------------------
|
678
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
679
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
680
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
681
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
682
|
+
[1m[35m (0.1ms)[0m begin transaction
|
683
|
+
------------------------------------------------------
|
684
|
+
RecrodsTest: test_should_delete_associated_translation
|
685
|
+
------------------------------------------------------
|
686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
687
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
688
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
689
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
690
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
691
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
|
692
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
693
|
+
[1m[35m (0.0ms)[0m begin transaction
|
694
|
+
----------------------------------------------------
|
695
|
+
RecrodsTest: test_should_edit_associated_translation
|
696
|
+
----------------------------------------------------
|
697
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
698
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
699
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
700
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
701
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
702
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
703
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
704
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
705
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
706
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
707
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
708
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
709
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
710
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
711
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
712
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
713
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
714
|
+
-------------------------------------
|
715
|
+
I18nGeneratorTest: test_should_exists
|
716
|
+
-------------------------------------
|
717
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
719
|
+
------------------------------------------------------
|
720
|
+
RecrodsTest: test_should_create_associated_translation
|
721
|
+
------------------------------------------------------
|
722
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
723
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
724
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
725
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
726
|
+
[1m[35m (0.0ms)[0m begin transaction
|
727
|
+
------------------------------------------------------
|
728
|
+
RecrodsTest: test_should_delete_associated_translation
|
729
|
+
------------------------------------------------------
|
730
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
731
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
732
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
733
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
734
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
735
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
|
736
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
737
|
+
[1m[35m (0.0ms)[0m begin transaction
|
738
|
+
----------------------------------------------------
|
739
|
+
RecrodsTest: test_should_edit_associated_translation
|
740
|
+
----------------------------------------------------
|
741
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
742
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
743
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
744
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
745
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
746
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
747
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
748
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
749
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
750
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
751
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
752
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
753
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
754
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
755
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
756
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
757
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
758
|
+
------------------------------------------------------
|
759
|
+
RecrodsTest: test_should_create_associated_translation
|
760
|
+
------------------------------------------------------
|
761
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
762
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
763
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
765
|
+
[1m[35m (0.0ms)[0m begin transaction
|
766
|
+
------------------------------------------------------
|
767
|
+
RecrodsTest: test_should_delete_associated_translation
|
768
|
+
------------------------------------------------------
|
769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
771
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
773
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
774
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
|
775
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
776
|
+
[1m[35m (0.1ms)[0m begin transaction
|
777
|
+
----------------------------------------------------
|
778
|
+
RecrodsTest: test_should_edit_associated_translation
|
779
|
+
----------------------------------------------------
|
780
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
781
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
782
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
783
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
784
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
785
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
786
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
787
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
788
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
789
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
790
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
791
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
792
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
793
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
794
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
795
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
797
|
+
------------------------------------------------------
|
798
|
+
RecrodsTest: test_should_create_associated_translation
|
799
|
+
------------------------------------------------------
|
800
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
801
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
802
|
+
[1m[35mSQL (2.0ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
803
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
804
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
805
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
807
|
+
------------------------------------------------------
|
808
|
+
RecrodsTest: test_should_delete_associated_translation
|
809
|
+
------------------------------------------------------
|
810
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
811
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
812
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
813
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
814
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
815
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
816
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
817
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
818
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
819
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
820
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
821
|
+
[1m[35m (0.0ms)[0m begin transaction
|
822
|
+
----------------------------------------------------
|
823
|
+
RecrodsTest: test_should_edit_associated_translation
|
824
|
+
----------------------------------------------------
|
825
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
826
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
827
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
828
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
829
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
830
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
831
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
832
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 17:56:31 UTC +00:00]]
|
833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
834
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
835
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
836
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
837
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
838
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
839
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
840
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
841
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
842
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
843
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
844
|
+
------------------------------------------------------
|
845
|
+
RecrodsTest: test_should_create_associated_translation
|
846
|
+
------------------------------------------------------
|
847
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
848
|
+
[1m[36mModelTranslation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
849
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
850
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
851
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
852
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
854
|
+
------------------------------------------------------
|
855
|
+
RecrodsTest: test_should_delete_associated_translation
|
856
|
+
------------------------------------------------------
|
857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
858
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
859
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
860
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
861
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
863
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
864
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
867
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
868
|
+
[1m[35m (0.0ms)[0m begin transaction
|
869
|
+
----------------------------------------------------
|
870
|
+
RecrodsTest: test_should_edit_associated_translation
|
871
|
+
----------------------------------------------------
|
872
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
873
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
874
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
875
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
876
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
877
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
878
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
879
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 17:58:52 UTC +00:00]]
|
880
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
881
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
882
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
883
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
884
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
885
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
886
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
887
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
888
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
889
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
890
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
891
|
+
---------------------------------------
|
892
|
+
RecrodsTest: test_should_change_locales
|
893
|
+
---------------------------------------
|
894
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
895
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
896
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
897
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
898
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
899
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
900
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
901
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
902
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
903
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
904
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
905
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
906
|
+
------------------------------------------------------
|
907
|
+
RecrodsTest: test_should_create_associated_translation
|
908
|
+
------------------------------------------------------
|
909
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
910
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
911
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
912
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
913
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
914
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
915
|
+
[1m[35m (0.0ms)[0m begin transaction
|
916
|
+
------------------------------------------------------
|
917
|
+
RecrodsTest: test_should_delete_associated_translation
|
918
|
+
------------------------------------------------------
|
919
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
920
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
921
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
922
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
923
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
925
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
926
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
927
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
928
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
929
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
930
|
+
[1m[35m (0.0ms)[0m begin transaction
|
931
|
+
----------------------------------------------------
|
932
|
+
RecrodsTest: test_should_edit_associated_translation
|
933
|
+
----------------------------------------------------
|
934
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
935
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
936
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
937
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
938
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
939
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
940
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
941
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:03:50 UTC +00:00]]
|
942
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
943
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
944
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
945
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
946
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
947
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
948
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
949
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
950
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
951
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
952
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
953
|
+
---------------------------------------
|
954
|
+
RecrodsTest: test_should_change_locales
|
955
|
+
---------------------------------------
|
956
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
957
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
958
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
959
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
960
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
961
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
962
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
963
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
964
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
965
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
966
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
967
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
968
|
+
------------------------------------------------------
|
969
|
+
RecrodsTest: test_should_create_associated_translation
|
970
|
+
------------------------------------------------------
|
971
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
972
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
973
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
974
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
976
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
977
|
+
[1m[35m (0.0ms)[0m begin transaction
|
978
|
+
------------------------------------------------------
|
979
|
+
RecrodsTest: test_should_delete_associated_translation
|
980
|
+
------------------------------------------------------
|
981
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
982
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
983
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
984
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
985
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
986
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
987
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
988
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
989
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
990
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
991
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
992
|
+
[1m[35m (0.1ms)[0m begin transaction
|
993
|
+
----------------------------------------------------
|
994
|
+
RecrodsTest: test_should_edit_associated_translation
|
995
|
+
----------------------------------------------------
|
996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
997
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
998
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
999
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
1000
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1001
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1002
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1003
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:03:58 UTC +00:00]]
|
1004
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1005
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1006
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
1007
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
1008
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
1009
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1010
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1011
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1012
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1013
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
1014
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1015
|
+
---------------------------------------
|
1016
|
+
RecrodsTest: test_should_change_locales
|
1017
|
+
---------------------------------------
|
1018
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1019
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1020
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:04:54 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:04:54 UTC +00:00]]
|
1021
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:04:54 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:04:54 UTC +00:00]]
|
1022
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1023
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1024
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1025
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1026
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
1027
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1028
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1029
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1030
|
+
------------------------------------------------------
|
1031
|
+
RecrodsTest: test_should_create_associated_translation
|
1032
|
+
------------------------------------------------------
|
1033
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1034
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1035
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1036
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1037
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1038
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1039
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1040
|
+
------------------------------------------------------
|
1041
|
+
RecrodsTest: test_should_delete_associated_translation
|
1042
|
+
------------------------------------------------------
|
1043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1044
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1045
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1046
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1047
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1048
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1049
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
1050
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
1051
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1052
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
1053
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1054
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1055
|
+
----------------------------------------------------
|
1056
|
+
RecrodsTest: test_should_edit_associated_translation
|
1057
|
+
----------------------------------------------------
|
1058
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1059
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1060
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1061
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1062
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1063
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1064
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1065
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:04:55 UTC +00:00]]
|
1066
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1067
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1068
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
1069
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
1070
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
1071
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1072
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1073
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1074
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1075
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
1076
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1077
|
+
-------------------------------------
|
1078
|
+
I18nGeneratorTest: test_should_exists
|
1079
|
+
-------------------------------------
|
1080
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1082
|
+
---------------------------------------
|
1083
|
+
RecrodsTest: test_should_change_locales
|
1084
|
+
---------------------------------------
|
1085
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1086
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1087
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1088
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1089
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1090
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1091
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1092
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1093
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
1094
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1095
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1096
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1097
|
+
------------------------------------------------------
|
1098
|
+
RecrodsTest: test_should_create_associated_translation
|
1099
|
+
------------------------------------------------------
|
1100
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1101
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1102
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1103
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1104
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1105
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1106
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1107
|
+
------------------------------------------------------
|
1108
|
+
RecrodsTest: test_should_delete_associated_translation
|
1109
|
+
------------------------------------------------------
|
1110
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1111
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1112
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1113
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1114
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1115
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1116
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
1117
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
1118
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1119
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
1120
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1122
|
+
----------------------------------------------------
|
1123
|
+
RecrodsTest: test_should_edit_associated_translation
|
1124
|
+
----------------------------------------------------
|
1125
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1126
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1127
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1128
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1129
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1130
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1131
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1132
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:11:59 UTC +00:00]]
|
1133
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1135
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
1136
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
1137
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
1138
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1139
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1140
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1141
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1142
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
1143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1144
|
+
-------------------------------------
|
1145
|
+
I18nGeneratorTest: test_should_exists
|
1146
|
+
-------------------------------------
|
1147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1149
|
+
---------------------------------------
|
1150
|
+
RecrodsTest: test_should_change_locales
|
1151
|
+
---------------------------------------
|
1152
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1153
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1154
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1155
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1156
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1157
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1158
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1159
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1160
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
1161
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1162
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1163
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1164
|
+
------------------------------------------------------
|
1165
|
+
RecrodsTest: test_should_create_associated_translation
|
1166
|
+
------------------------------------------------------
|
1167
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1168
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1169
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1170
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1171
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1172
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1173
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1174
|
+
------------------------------------------------------
|
1175
|
+
RecrodsTest: test_should_delete_associated_translation
|
1176
|
+
------------------------------------------------------
|
1177
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1178
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1179
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1180
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1181
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1182
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1183
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
1184
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
1185
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1186
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
1187
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1188
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1189
|
+
----------------------------------------------------
|
1190
|
+
RecrodsTest: test_should_edit_associated_translation
|
1191
|
+
----------------------------------------------------
|
1192
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1193
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1194
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1195
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1196
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1197
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1198
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1199
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:12:10 UTC +00:00]]
|
1200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1201
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1202
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
1203
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
1204
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
1205
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1206
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1207
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1208
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1209
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
1210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1211
|
+
---------------------------------------------
|
1212
|
+
I18nGeneratorTest: test_should_generate_files
|
1213
|
+
---------------------------------------------
|
1214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1216
|
+
---------------------------------------
|
1217
|
+
RecrodsTest: test_should_change_locales
|
1218
|
+
---------------------------------------
|
1219
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1220
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1221
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1222
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1223
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1224
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1225
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1226
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1227
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
1228
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1229
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1231
|
+
------------------------------------------------------
|
1232
|
+
RecrodsTest: test_should_create_associated_translation
|
1233
|
+
------------------------------------------------------
|
1234
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1235
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1236
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1237
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1238
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1240
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1241
|
+
------------------------------------------------------
|
1242
|
+
RecrodsTest: test_should_delete_associated_translation
|
1243
|
+
------------------------------------------------------
|
1244
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1245
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1246
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1247
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1248
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1250
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
1251
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
1252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1253
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
1254
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1256
|
+
----------------------------------------------------
|
1257
|
+
RecrodsTest: test_should_edit_associated_translation
|
1258
|
+
----------------------------------------------------
|
1259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1260
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1261
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1262
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1265
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1266
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:12:26 UTC +00:00]]
|
1267
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1268
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1269
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
1270
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
1271
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
1272
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1273
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1274
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1275
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1276
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
1277
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1278
|
+
---------------------------------------------
|
1279
|
+
I18nGeneratorTest: test_should_generate_files
|
1280
|
+
---------------------------------------------
|
1281
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1283
|
+
---------------------------------------
|
1284
|
+
RecrodsTest: test_should_change_locales
|
1285
|
+
---------------------------------------
|
1286
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1287
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1288
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1289
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1290
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1291
|
+
[1m[36mModelTranslation Load (0.1ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1292
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1293
|
+
[1m[36mModelTranslation Load (0.0ms)[0m [1mSELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1[0m [["model_id", 1]]
|
1294
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
|
1295
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1296
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1297
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1298
|
+
------------------------------------------------------
|
1299
|
+
RecrodsTest: test_should_create_associated_translation
|
1300
|
+
------------------------------------------------------
|
1301
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1302
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1303
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1304
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1306
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1307
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1308
|
+
------------------------------------------------------
|
1309
|
+
RecrodsTest: test_should_delete_associated_translation
|
1310
|
+
------------------------------------------------------
|
1311
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1312
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1314
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1315
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1316
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1317
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "model_translations" WHERE "model_translations"."id" = ?[0m [["id", 1]]
|
1318
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
|
1319
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1320
|
+
[1m[35mModelTranslation Load (0.1ms)[0m SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
|
1321
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1323
|
+
----------------------------------------------------
|
1324
|
+
RecrodsTest: test_should_edit_associated_translation
|
1325
|
+
----------------------------------------------------
|
1326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1327
|
+
[1m[35mModelTranslation Exists (0.1ms)[0m SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
|
1328
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1329
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00], ["locale", "en"], ["model_id", 1], ["name", "name"], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1332
|
+
[1m[36mModelTranslation Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1[0m
|
1333
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "model_translations" SET "name" = ?, "updated_at" = ? WHERE "model_translations"."id" = 1 [["name", "new name"], ["updated_at", Mon, 03 Mar 2014 18:12:49 UTC +00:00]]
|
1334
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
data/test/generators_test.rb
CHANGED
@@ -11,7 +11,7 @@ class I18nGeneratorTest < Rails::Generators::TestCase
|
|
11
11
|
tests TranslationGenerator
|
12
12
|
destination File.expand_path('../tmp', File.dirname(__FILE__))
|
13
13
|
|
14
|
-
test "should
|
14
|
+
test "should generate files" do
|
15
15
|
run_generator %w(model)
|
16
16
|
assert_file 'app/models/model_translation.rb'
|
17
17
|
assert_migration 'db/migrate/create_model_translations.rb'
|
data/test/records_test.rb
CHANGED
@@ -2,22 +2,33 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
class RecrodsTest < ActiveSupport::TestCase
|
4
4
|
|
5
|
-
setup do
|
6
|
-
@record = Model.create(name: 'name')
|
7
|
-
end
|
8
|
-
|
9
5
|
test "should create associated translation" do
|
10
|
-
assert_equal
|
6
|
+
assert_equal 'name', record.name
|
11
7
|
end
|
12
8
|
|
13
9
|
test "should edit associated translation" do
|
14
|
-
|
15
|
-
assert_equal
|
10
|
+
record.update name: 'new name'
|
11
|
+
assert_equal 'new name', record.name
|
16
12
|
end
|
17
13
|
|
18
14
|
test "should delete associated translation" do
|
19
|
-
|
20
|
-
|
15
|
+
record.destroy
|
16
|
+
assert_nil ModelTranslation.find_by_model_id(record.id)
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should change locales" do
|
20
|
+
record.with_locale :es
|
21
|
+
assert_nil record.name
|
22
|
+
record.update name: 'new name'
|
23
|
+
assert_equal 'new name', record.name
|
24
|
+
record.with_locale :en
|
25
|
+
assert_equal 'name', record.name
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def record
|
31
|
+
@record ||= Model.create(name: 'name')
|
21
32
|
end
|
22
33
|
|
23
34
|
end
|
metadata
CHANGED
@@ -1,61 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translatable_records
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Museways
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Everything you need to work with translatable records.
|
42
42
|
email:
|
43
|
-
-
|
43
|
+
- hello@museways.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- README.rdoc
|
50
|
+
- Rakefile
|
48
51
|
- lib/generators/templates/migration.rb.erb
|
49
52
|
- lib/generators/templates/model.rb.erb
|
50
53
|
- lib/generators/translation_generator.rb
|
54
|
+
- lib/translatable_records.rb
|
51
55
|
- lib/translatable_records/active_record/base.rb
|
52
56
|
- lib/translatable_records/active_record/translatable.rb
|
53
57
|
- lib/translatable_records/railtie.rb
|
54
58
|
- lib/translatable_records/version.rb
|
55
|
-
-
|
56
|
-
-
|
57
|
-
- Rakefile
|
58
|
-
- README.rdoc
|
59
|
+
- test/dummy/README.rdoc
|
60
|
+
- test/dummy/Rakefile
|
59
61
|
- test/dummy/app/assets/javascripts/application.js
|
60
62
|
- test/dummy/app/assets/stylesheets/application.css
|
61
63
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -66,6 +68,7 @@ files:
|
|
66
68
|
- test/dummy/bin/bundle
|
67
69
|
- test/dummy/bin/rails
|
68
70
|
- test/dummy/bin/rake
|
71
|
+
- test/dummy/config.ru
|
69
72
|
- test/dummy/config/application.rb
|
70
73
|
- test/dummy/config/boot.rb
|
71
74
|
- test/dummy/config/database.yml
|
@@ -82,8 +85,6 @@ files:
|
|
82
85
|
- test/dummy/config/initializers/wrap_parameters.rb
|
83
86
|
- test/dummy/config/locales/en.yml
|
84
87
|
- test/dummy/config/routes.rb
|
85
|
-
- test/dummy/config.ru
|
86
|
-
- test/dummy/db/development.sqlite3
|
87
88
|
- test/dummy/db/migrate/20130819155126_create_models.rb
|
88
89
|
- test/dummy/db/migrate/20130819165249_create_model_translations.rb
|
89
90
|
- test/dummy/db/schema.rb
|
@@ -93,12 +94,10 @@ files:
|
|
93
94
|
- test/dummy/public/422.html
|
94
95
|
- test/dummy/public/500.html
|
95
96
|
- test/dummy/public/favicon.ico
|
96
|
-
- test/dummy/Rakefile
|
97
|
-
- test/dummy/README.rdoc
|
98
97
|
- test/generators_test.rb
|
99
98
|
- test/records_test.rb
|
100
99
|
- test/test_helper.rb
|
101
|
-
homepage: https://github.com/
|
100
|
+
homepage: https://github.com/museways/translatable_records
|
102
101
|
licenses:
|
103
102
|
- MIT
|
104
103
|
metadata: {}
|
@@ -108,17 +107,17 @@ require_paths:
|
|
108
107
|
- lib
|
109
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
109
|
requirements:
|
111
|
-
- -
|
110
|
+
- - ">="
|
112
111
|
- !ruby/object:Gem::Version
|
113
112
|
version: '0'
|
114
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
114
|
requirements:
|
116
|
-
- -
|
115
|
+
- - ">="
|
117
116
|
- !ruby/object:Gem::Version
|
118
117
|
version: '0'
|
119
118
|
requirements: []
|
120
119
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.2.2
|
122
121
|
signing_key:
|
123
122
|
specification_version: 4
|
124
123
|
summary: Translatable Records for Rails.
|
@@ -150,7 +149,6 @@ test_files:
|
|
150
149
|
- test/dummy/config/locales/en.yml
|
151
150
|
- test/dummy/config/routes.rb
|
152
151
|
- test/dummy/config.ru
|
153
|
-
- test/dummy/db/development.sqlite3
|
154
152
|
- test/dummy/db/migrate/20130819155126_create_models.rb
|
155
153
|
- test/dummy/db/migrate/20130819165249_create_model_translations.rb
|
156
154
|
- test/dummy/db/schema.rb
|
Binary file
|