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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 483bcb525853842c890f60d0a302627951f39c30
4
- data.tar.gz: 291162c9fc9494e145a5cda54e400fb879258e87
3
+ metadata.gz: 05af5734e652d0b785cd48ba53f395430fc4e248
4
+ data.tar.gz: 467134ed6c5695932738185040c0cb504a5f0944
5
5
  SHA512:
6
- metadata.gz: e600cdf3023c1ab5cebb201f8de927700a9f74f97f6d100f00ffe302c2dfbb8ee6587e9bbc5c912d5a1d2b29d8d47c02a87b98a42bc303a7aaa2f3de8ef416ec
7
- data.tar.gz: 9b8758d9bd6d588d69f27c31fb4d7e42ad40f6232a54f25c2170eaf41ff1191834e1801990ffd8384c547ef0b2acac0ec7cf0e6181452f04b467f76581faa42d
6
+ metadata.gz: ed349d8c6bc19c14b1df8cdcb15127ff26ac8cb7a3f8eedfa7ecda32cb1c21e54b9eeef17d762a425333b16724a781f9528a7f41186f4746cedb627f1c1f077d
7
+ data.tar.gz: f010ff700fe1d44cb3a1703f8223850fc2b65a4652180cd08c59b05ac32f7050ca9702491a4a0db2b82f7ffd7763d06233a16f555f60e02a6dbdd0d2b9f771ca
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 Mattways
1
+ Copyright 2013 Museways
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- {<img src="https://codeclimate.com/github/mattways/translatable_records.png" />}[https://codeclimate.com/github/mattways/translatable_records] {<img src="https://secure.travis-ci.org/mattways/translatable_records.png?branch=master" alt="Build Status" />}[https://travis-ci.org/mattways/translatable_records] {<img src="https://gemnasium.com/mattways/translatable_records.png" alt="Dependency Status" />}[https://gemnasium.com/mattways/translatable_records]
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
- reflections.has_key? :translations
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(name)
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
- send :include, TranslatableRecords::ActiveRecord::Translatable
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
- ['set', 'get'].each { |method| send "define_translatable_attribute_method_#{method}", attr }
35
+ ['setter', 'getter'].each { |method| send "define_translatable_attribute_#{method}", attr }
36
36
  end
37
37
 
38
- def define_translatable_attribute_method_set(attr)
39
- method_name = :"#{attr}="
40
- define_method method_name do |value|
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(method_name, value) : translations.build(locale: current_locale.to_s, attr.to_sym => value)
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 define_translatable_attribute_method_get(attr)
46
+ def define_translatable_attribute_getter(attr)
47
47
  ['', '_was', '_changed?'].each do |suffix|
48
- method_name = :"#{attr}#{suffix}"
49
- define_method method_name do
48
+ name = :"#{attr}#{suffix}"
49
+ define_method name do
50
50
  t = translation_by_locale(current_locale)
51
- t ? t.send(method_name) : nil
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 do |locale|
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
- defined?(@locale).nil? ? I18n.locale.to_s : @locale
17
+ @locale || I18n.locale
21
18
  end
22
-
19
+
23
20
  def translation_by_locale(locale)
24
- t = translations.find { |t| t.locale == locale.to_s }
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
@@ -1,5 +1,5 @@
1
1
  module TranslatableRecords
2
2
 
3
- VERSION = '1.0.6'
3
+ VERSION = '1.0.7'
4
4
 
5
5
  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
-
@@ -1,6 +1,7 @@
1
1
  class CreateModels < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :models do |t|
4
+ t.string :name
4
5
 
5
6
  t.timestamps
6
7
  end
@@ -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
   (0.0ms) SELECT version FROM "schema_migrations"
169
169
   (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
170
170
   (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819155126')
171
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
172
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
173
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
174
+ Migrating to CreateModels (20130819155126)
175
+  (0.1ms) begin transaction
176
+  (0.4ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
177
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
178
+  (0.8ms) commit transaction
179
+ Migrating to CreateModelTranslations (20130819165249)
180
+  (0.0ms) begin transaction
181
+  (0.3ms) CREATE 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) 
182
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
183
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
184
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819165249"]]
185
+  (0.8ms) commit transaction
186
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -614,3 +614,722 @@ RecrodsTest: test_should_edit_associated_translation
614
614
  SQL (0.1ms) 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
   (0.0ms) RELEASE SAVEPOINT active_record_1
616
616
   (0.0ms) rollback transaction
617
+  (0.3ms) CREATE 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) 
618
+  (0.2ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
619
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
620
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
621
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
622
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
623
+  (0.1ms) SELECT version FROM "schema_migrations"
624
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
625
+  (0.1ms) begin transaction
626
+ -------------------------------------
627
+ I18nGeneratorTest: test_should_exists
628
+ -------------------------------------
629
+  (0.1ms) rollback transaction
630
+  (0.0ms) begin transaction
631
+ ------------------------------------------------------
632
+ RecrodsTest: test_should_create_associated_translation
633
+ ------------------------------------------------------
634
+  (0.1ms) SAVEPOINT active_record_1
635
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
636
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
637
+  (0.1ms) rollback transaction
638
+  (0.1ms) begin transaction
639
+ ------------------------------------------------------
640
+ RecrodsTest: test_should_delete_associated_translation
641
+ ------------------------------------------------------
642
+  (0.0ms) SAVEPOINT active_record_1
643
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
644
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
645
+  (0.0ms) SAVEPOINT active_record_1
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
648
+  (0.1ms) rollback transaction
649
+  (0.0ms) begin transaction
650
+ ----------------------------------------------------
651
+ RecrodsTest: test_should_edit_associated_translation
652
+ ----------------------------------------------------
653
+  (0.0ms) SAVEPOINT active_record_1
654
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
655
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
656
+  (0.0ms) SAVEPOINT active_record_1
657
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
658
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
659
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
660
+  (0.0ms) rollback transaction
661
+  (0.3ms) CREATE 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) 
662
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
663
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
664
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
665
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
666
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
667
+  (0.0ms) SELECT version FROM "schema_migrations"
668
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
669
+  (0.1ms) begin transaction
670
+ -------------------------------------
671
+ I18nGeneratorTest: test_should_exists
672
+ -------------------------------------
673
+  (0.1ms) rollback transaction
674
+  (0.1ms) begin transaction
675
+ ------------------------------------------------------
676
+ RecrodsTest: test_should_create_associated_translation
677
+ ------------------------------------------------------
678
+  (0.1ms) SAVEPOINT active_record_1
679
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
680
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681
+  (0.1ms) rollback transaction
682
+  (0.1ms) begin transaction
683
+ ------------------------------------------------------
684
+ RecrodsTest: test_should_delete_associated_translation
685
+ ------------------------------------------------------
686
+  (0.1ms) SAVEPOINT active_record_1
687
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
688
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
689
+  (0.1ms) SAVEPOINT active_record_1
690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
691
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
692
+  (0.0ms) rollback transaction
693
+  (0.0ms) begin transaction
694
+ ----------------------------------------------------
695
+ RecrodsTest: test_should_edit_associated_translation
696
+ ----------------------------------------------------
697
+  (0.0ms) SAVEPOINT active_record_1
698
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
699
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
700
+  (0.0ms) SAVEPOINT active_record_1
701
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
702
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
703
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
704
+  (0.0ms) rollback transaction
705
+  (0.3ms) CREATE 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) 
706
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
707
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
708
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
709
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
710
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
711
+  (0.1ms) SELECT version FROM "schema_migrations"
712
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
713
+  (0.1ms) begin transaction
714
+ -------------------------------------
715
+ I18nGeneratorTest: test_should_exists
716
+ -------------------------------------
717
+  (0.1ms) rollback transaction
718
+  (0.1ms) begin transaction
719
+ ------------------------------------------------------
720
+ RecrodsTest: test_should_create_associated_translation
721
+ ------------------------------------------------------
722
+  (0.1ms) SAVEPOINT active_record_1
723
+ ModelTranslation Exists (0.2ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
724
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
725
+  (0.1ms) rollback transaction
726
+  (0.0ms) begin transaction
727
+ ------------------------------------------------------
728
+ RecrodsTest: test_should_delete_associated_translation
729
+ ------------------------------------------------------
730
+  (0.1ms) SAVEPOINT active_record_1
731
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
732
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
733
+  (0.0ms) SAVEPOINT active_record_1
734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
735
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
736
+  (0.0ms) rollback transaction
737
+  (0.0ms) begin transaction
738
+ ----------------------------------------------------
739
+ RecrodsTest: test_should_edit_associated_translation
740
+ ----------------------------------------------------
741
+  (0.0ms) SAVEPOINT active_record_1
742
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
743
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
744
+  (0.0ms) SAVEPOINT active_record_1
745
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
746
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
747
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
748
+  (0.0ms) rollback transaction
749
+  (0.3ms) CREATE 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) 
750
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
751
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
752
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
753
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
754
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
755
+  (0.1ms) SELECT version FROM "schema_migrations"
756
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
757
+  (0.1ms) begin transaction
758
+ ------------------------------------------------------
759
+ RecrodsTest: test_should_create_associated_translation
760
+ ------------------------------------------------------
761
+  (0.1ms) SAVEPOINT active_record_1
762
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
763
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
764
+  (0.1ms) rollback transaction
765
+  (0.0ms) begin transaction
766
+ ------------------------------------------------------
767
+ RecrodsTest: test_should_delete_associated_translation
768
+ ------------------------------------------------------
769
+  (0.1ms) SAVEPOINT active_record_1
770
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
771
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
772
+  (0.0ms) SAVEPOINT active_record_1
773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
774
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" IS NULL LIMIT 1
775
+  (0.0ms) rollback transaction
776
+  (0.1ms) begin transaction
777
+ ----------------------------------------------------
778
+ RecrodsTest: test_should_edit_associated_translation
779
+ ----------------------------------------------------
780
+  (0.0ms) SAVEPOINT active_record_1
781
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
782
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
783
+  (0.0ms) SAVEPOINT active_record_1
784
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
785
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
786
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
787
+  (0.1ms) rollback transaction
788
+  (0.3ms) CREATE 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) 
789
+  (0.2ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
790
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
791
+  (0.2ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
792
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
793
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
794
+  (0.1ms) SELECT version FROM "schema_migrations"
795
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
796
+  (0.1ms) begin transaction
797
+ ------------------------------------------------------
798
+ RecrodsTest: test_should_create_associated_translation
799
+ ------------------------------------------------------
800
+  (0.1ms) SAVEPOINT active_record_1
801
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
802
+ SQL (2.0ms) 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
+ SQL (0.2ms) 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]]
804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
805
+  (0.1ms) rollback transaction
806
+  (0.1ms) begin transaction
807
+ ------------------------------------------------------
808
+ RecrodsTest: test_should_delete_associated_translation
809
+ ------------------------------------------------------
810
+  (0.0ms) SAVEPOINT active_record_1
811
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
812
+ SQL (0.1ms) 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]]
813
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
815
+  (0.0ms) SAVEPOINT active_record_1
816
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
817
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
819
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
820
+  (0.1ms) rollback transaction
821
+  (0.0ms) begin transaction
822
+ ----------------------------------------------------
823
+ RecrodsTest: test_should_edit_associated_translation
824
+ ----------------------------------------------------
825
+  (0.1ms) SAVEPOINT active_record_1
826
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
827
+ SQL (0.1ms) 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]]
828
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
830
+  (0.0ms) SAVEPOINT active_record_1
831
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
832
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
834
+  (0.1ms) rollback transaction
835
+  (0.3ms) CREATE 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) 
836
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
837
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
838
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
839
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
840
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
841
+  (0.0ms) SELECT version FROM "schema_migrations"
842
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
843
+  (0.1ms) begin transaction
844
+ ------------------------------------------------------
845
+ RecrodsTest: test_should_create_associated_translation
846
+ ------------------------------------------------------
847
+  (0.1ms) SAVEPOINT active_record_1
848
+ ModelTranslation Exists (0.2ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
849
+ SQL (0.9ms) 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
+ SQL (0.2ms) 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]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
852
+  (0.1ms) rollback transaction
853
+  (0.1ms) begin transaction
854
+ ------------------------------------------------------
855
+ RecrodsTest: test_should_delete_associated_translation
856
+ ------------------------------------------------------
857
+  (0.0ms) SAVEPOINT active_record_1
858
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
859
+ SQL (0.1ms) 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]]
860
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
862
+  (0.0ms) SAVEPOINT active_record_1
863
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
864
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
866
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
867
+  (0.1ms) rollback transaction
868
+  (0.0ms) begin transaction
869
+ ----------------------------------------------------
870
+ RecrodsTest: test_should_edit_associated_translation
871
+ ----------------------------------------------------
872
+  (0.0ms) SAVEPOINT active_record_1
873
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
874
+ SQL (0.1ms) 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]]
875
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
877
+  (0.0ms) SAVEPOINT active_record_1
878
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
879
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+  (0.0ms) rollback transaction
882
+  (0.3ms) CREATE 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) 
883
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
884
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
885
+  (0.2ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
886
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
887
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
888
+  (0.1ms) SELECT version FROM "schema_migrations"
889
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
890
+  (0.1ms) begin transaction
891
+ ---------------------------------------
892
+ RecrodsTest: test_should_change_locales
893
+ ---------------------------------------
894
+  (0.1ms) SAVEPOINT active_record_1
895
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
896
+ SQL (0.9ms) 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
+ SQL (0.2ms) 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]]
898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
899
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
900
+  (0.0ms) SAVEPOINT active_record_1
901
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
902
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
903
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
904
+  (0.1ms) rollback transaction
905
+  (0.1ms) begin transaction
906
+ ------------------------------------------------------
907
+ RecrodsTest: test_should_create_associated_translation
908
+ ------------------------------------------------------
909
+  (0.1ms) SAVEPOINT active_record_1
910
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
911
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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]]
913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
914
+  (0.1ms) rollback transaction
915
+  (0.0ms) begin transaction
916
+ ------------------------------------------------------
917
+ RecrodsTest: test_should_delete_associated_translation
918
+ ------------------------------------------------------
919
+  (0.0ms) SAVEPOINT active_record_1
920
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
921
+ SQL (0.1ms) 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]]
922
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
926
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
928
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
929
+  (0.0ms) rollback transaction
930
+  (0.0ms) begin transaction
931
+ ----------------------------------------------------
932
+ RecrodsTest: test_should_edit_associated_translation
933
+ ----------------------------------------------------
934
+  (0.1ms) SAVEPOINT active_record_1
935
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
936
+ SQL (0.1ms) 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]]
937
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
939
+  (0.0ms) SAVEPOINT active_record_1
940
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
941
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
943
+  (0.1ms) rollback transaction
944
+  (0.3ms) CREATE 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) 
945
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
946
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
947
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
948
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
949
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
950
+  (0.0ms) SELECT version FROM "schema_migrations"
951
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
952
+  (0.1ms) begin transaction
953
+ ---------------------------------------
954
+ RecrodsTest: test_should_change_locales
955
+ ---------------------------------------
956
+  (0.1ms) SAVEPOINT active_record_1
957
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
958
+ SQL (0.8ms) 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
+ SQL (0.2ms) 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]]
960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
961
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
962
+  (0.0ms) SAVEPOINT active_record_1
963
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
964
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
965
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
966
+  (0.1ms) rollback transaction
967
+  (0.0ms) begin transaction
968
+ ------------------------------------------------------
969
+ RecrodsTest: test_should_create_associated_translation
970
+ ------------------------------------------------------
971
+  (0.1ms) SAVEPOINT active_record_1
972
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
973
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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]]
975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
976
+  (0.1ms) rollback transaction
977
+  (0.0ms) begin transaction
978
+ ------------------------------------------------------
979
+ RecrodsTest: test_should_delete_associated_translation
980
+ ------------------------------------------------------
981
+  (0.0ms) SAVEPOINT active_record_1
982
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
983
+ SQL (0.1ms) 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]]
984
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
986
+  (0.0ms) SAVEPOINT active_record_1
987
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
988
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
990
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
991
+  (0.0ms) rollback transaction
992
+  (0.1ms) begin transaction
993
+ ----------------------------------------------------
994
+ RecrodsTest: test_should_edit_associated_translation
995
+ ----------------------------------------------------
996
+  (0.0ms) SAVEPOINT active_record_1
997
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
998
+ SQL (0.1ms) 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]]
999
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1001
+  (0.0ms) SAVEPOINT active_record_1
1002
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
1003
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1005
+  (0.1ms) rollback transaction
1006
+  (0.3ms) CREATE 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) 
1007
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
1008
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
1009
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
1010
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1011
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1012
+  (0.1ms) SELECT version FROM "schema_migrations"
1013
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
1014
+  (0.1ms) begin transaction
1015
+ ---------------------------------------
1016
+ RecrodsTest: test_should_change_locales
1017
+ ---------------------------------------
1018
+  (0.1ms) SAVEPOINT active_record_1
1019
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1020
+ SQL (0.8ms) 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
+ SQL (0.2ms) INSERT INTO "model_translations" ("created_at", "locale", "model_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1023
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1024
+  (0.0ms) SAVEPOINT active_record_1
1025
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1026
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
1027
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1028
+  (0.1ms) rollback transaction
1029
+  (0.1ms) begin transaction
1030
+ ------------------------------------------------------
1031
+ RecrodsTest: test_should_create_associated_translation
1032
+ ------------------------------------------------------
1033
+  (0.1ms) SAVEPOINT active_record_1
1034
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1035
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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]]
1037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.1ms) rollback transaction
1039
+  (0.1ms) begin transaction
1040
+ ------------------------------------------------------
1041
+ RecrodsTest: test_should_delete_associated_translation
1042
+ ------------------------------------------------------
1043
+  (0.1ms) SAVEPOINT active_record_1
1044
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1045
+ SQL (0.1ms) 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]]
1046
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1048
+  (0.1ms) SAVEPOINT active_record_1
1049
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
1050
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
1051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1052
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
1053
+  (0.0ms) rollback transaction
1054
+  (0.1ms) begin transaction
1055
+ ----------------------------------------------------
1056
+ RecrodsTest: test_should_edit_associated_translation
1057
+ ----------------------------------------------------
1058
+  (0.0ms) SAVEPOINT active_record_1
1059
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1060
+ SQL (0.1ms) 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]]
1061
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1063
+  (0.1ms) SAVEPOINT active_record_1
1064
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
1065
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1067
+  (0.1ms) rollback transaction
1068
+  (0.3ms) CREATE 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) 
1069
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
1070
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
1071
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
1072
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1073
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1074
+  (0.0ms) SELECT version FROM "schema_migrations"
1075
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
1076
+  (0.1ms) begin transaction
1077
+ -------------------------------------
1078
+ I18nGeneratorTest: test_should_exists
1079
+ -------------------------------------
1080
+  (0.0ms) rollback transaction
1081
+  (0.1ms) begin transaction
1082
+ ---------------------------------------
1083
+ RecrodsTest: test_should_change_locales
1084
+ ---------------------------------------
1085
+  (0.1ms) SAVEPOINT active_record_1
1086
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1087
+ SQL (0.9ms) 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
+ SQL (0.2ms) 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]]
1089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1090
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1091
+  (0.0ms) SAVEPOINT active_record_1
1092
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1093
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
1094
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1095
+  (0.1ms) rollback transaction
1096
+  (0.0ms) begin transaction
1097
+ ------------------------------------------------------
1098
+ RecrodsTest: test_should_create_associated_translation
1099
+ ------------------------------------------------------
1100
+  (0.0ms) SAVEPOINT active_record_1
1101
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1102
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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]]
1104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1105
+  (0.1ms) rollback transaction
1106
+  (0.0ms) begin transaction
1107
+ ------------------------------------------------------
1108
+ RecrodsTest: test_should_delete_associated_translation
1109
+ ------------------------------------------------------
1110
+  (0.1ms) SAVEPOINT active_record_1
1111
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1112
+ SQL (0.1ms) 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]]
1113
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1115
+  (0.0ms) SAVEPOINT active_record_1
1116
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
1117
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
1118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1119
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
1120
+  (0.1ms) rollback transaction
1121
+  (0.0ms) begin transaction
1122
+ ----------------------------------------------------
1123
+ RecrodsTest: test_should_edit_associated_translation
1124
+ ----------------------------------------------------
1125
+  (0.0ms) SAVEPOINT active_record_1
1126
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1127
+ SQL (0.1ms) 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]]
1128
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1130
+  (0.0ms) SAVEPOINT active_record_1
1131
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
1132
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1134
+  (0.0ms) rollback transaction
1135
+  (0.3ms) CREATE 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) 
1136
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
1137
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
1138
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
1139
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1140
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1141
+  (0.0ms) SELECT version FROM "schema_migrations"
1142
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
1143
+  (0.1ms) begin transaction
1144
+ -------------------------------------
1145
+ I18nGeneratorTest: test_should_exists
1146
+ -------------------------------------
1147
+  (0.1ms) rollback transaction
1148
+  (0.0ms) begin transaction
1149
+ ---------------------------------------
1150
+ RecrodsTest: test_should_change_locales
1151
+ ---------------------------------------
1152
+  (0.1ms) SAVEPOINT active_record_1
1153
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1154
+ SQL (0.8ms) 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
+ SQL (0.2ms) 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]]
1156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1157
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1158
+  (0.0ms) SAVEPOINT active_record_1
1159
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1160
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
1161
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1162
+  (0.1ms) rollback transaction
1163
+  (0.0ms) begin transaction
1164
+ ------------------------------------------------------
1165
+ RecrodsTest: test_should_create_associated_translation
1166
+ ------------------------------------------------------
1167
+  (0.0ms) SAVEPOINT active_record_1
1168
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1169
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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]]
1171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1172
+  (0.0ms) rollback transaction
1173
+  (0.0ms) begin transaction
1174
+ ------------------------------------------------------
1175
+ RecrodsTest: test_should_delete_associated_translation
1176
+ ------------------------------------------------------
1177
+  (0.0ms) SAVEPOINT active_record_1
1178
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1179
+ SQL (0.1ms) 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]]
1180
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1182
+  (0.0ms) SAVEPOINT active_record_1
1183
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
1184
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
1185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1186
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
1187
+  (0.1ms) rollback transaction
1188
+  (0.0ms) begin transaction
1189
+ ----------------------------------------------------
1190
+ RecrodsTest: test_should_edit_associated_translation
1191
+ ----------------------------------------------------
1192
+  (0.0ms) SAVEPOINT active_record_1
1193
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1194
+ SQL (0.1ms) 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]]
1195
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1197
+  (0.0ms) SAVEPOINT active_record_1
1198
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
1199
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1201
+  (0.1ms) rollback transaction
1202
+  (0.3ms) CREATE 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) 
1203
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
1204
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
1205
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
1206
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1207
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1208
+  (0.1ms) SELECT version FROM "schema_migrations"
1209
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
1210
+  (0.1ms) begin transaction
1211
+ ---------------------------------------------
1212
+ I18nGeneratorTest: test_should_generate_files
1213
+ ---------------------------------------------
1214
+  (0.1ms) rollback transaction
1215
+  (0.1ms) begin transaction
1216
+ ---------------------------------------
1217
+ RecrodsTest: test_should_change_locales
1218
+ ---------------------------------------
1219
+  (0.1ms) SAVEPOINT active_record_1
1220
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1221
+ SQL (0.8ms) 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
+ SQL (0.2ms) 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]]
1223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1224
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1225
+  (0.0ms) SAVEPOINT active_record_1
1226
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1227
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
1228
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1229
+  (0.1ms) rollback transaction
1230
+  (0.0ms) begin transaction
1231
+ ------------------------------------------------------
1232
+ RecrodsTest: test_should_create_associated_translation
1233
+ ------------------------------------------------------
1234
+  (0.0ms) SAVEPOINT active_record_1
1235
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1236
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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]]
1238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1239
+  (0.1ms) rollback transaction
1240
+  (0.0ms) begin transaction
1241
+ ------------------------------------------------------
1242
+ RecrodsTest: test_should_delete_associated_translation
1243
+ ------------------------------------------------------
1244
+  (0.1ms) SAVEPOINT active_record_1
1245
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1246
+ SQL (0.1ms) 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]]
1247
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
1251
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
1252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1253
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
1254
+  (0.0ms) rollback transaction
1255
+  (0.1ms) begin transaction
1256
+ ----------------------------------------------------
1257
+ RecrodsTest: test_should_edit_associated_translation
1258
+ ----------------------------------------------------
1259
+  (0.0ms) SAVEPOINT active_record_1
1260
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1261
+ SQL (0.1ms) 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]]
1262
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1264
+  (0.0ms) SAVEPOINT active_record_1
1265
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
1266
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1268
+  (0.1ms) rollback transaction
1269
+  (0.3ms) CREATE 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) 
1270
+  (0.1ms) CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
1271
+  (0.1ms) CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
1272
+  (0.1ms) CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
1273
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1274
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1275
+  (0.1ms) SELECT version FROM "schema_migrations"
1276
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
1277
+  (0.2ms) begin transaction
1278
+ ---------------------------------------------
1279
+ I18nGeneratorTest: test_should_generate_files
1280
+ ---------------------------------------------
1281
+  (0.1ms) rollback transaction
1282
+  (0.0ms) begin transaction
1283
+ ---------------------------------------
1284
+ RecrodsTest: test_should_change_locales
1285
+ ---------------------------------------
1286
+  (0.1ms) SAVEPOINT active_record_1
1287
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1288
+ SQL (0.8ms) 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
+ SQL (0.2ms) 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]]
1290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1291
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1292
+  (0.0ms) SAVEPOINT active_record_1
1293
+ ModelTranslation Load (0.0ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = ? AND "model_translations"."locale" = 'es' LIMIT 1 [["model_id", 1]]
1294
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."locale" = 'es') LIMIT 1
1295
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1296
+  (0.1ms) rollback transaction
1297
+  (0.0ms) begin transaction
1298
+ ------------------------------------------------------
1299
+ RecrodsTest: test_should_create_associated_translation
1300
+ ------------------------------------------------------
1301
+  (0.1ms) SAVEPOINT active_record_1
1302
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1303
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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]]
1305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1306
+  (0.1ms) rollback transaction
1307
+  (0.0ms) begin transaction
1308
+ ------------------------------------------------------
1309
+ RecrodsTest: test_should_delete_associated_translation
1310
+ ------------------------------------------------------
1311
+  (0.1ms) SAVEPOINT active_record_1
1312
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1313
+ SQL (0.1ms) 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]]
1314
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1316
+  (0.0ms) SAVEPOINT active_record_1
1317
+ SQL (0.1ms) DELETE FROM "model_translations" WHERE "model_translations"."id" = ? [["id", 1]]
1318
+ SQL (0.1ms) DELETE FROM "models" WHERE "models"."id" = ? [["id", 1]]
1319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1320
+ ModelTranslation Load (0.1ms) SELECT "model_translations".* FROM "model_translations" WHERE "model_translations"."model_id" = 1 LIMIT 1
1321
+  (0.0ms) rollback transaction
1322
+  (0.0ms) begin transaction
1323
+ ----------------------------------------------------
1324
+ RecrodsTest: test_should_edit_associated_translation
1325
+ ----------------------------------------------------
1326
+  (0.0ms) SAVEPOINT active_record_1
1327
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" IS NULL AND "model_translations"."locale" = 'en') LIMIT 1
1328
+ SQL (0.1ms) 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]]
1329
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1331
+  (0.0ms) SAVEPOINT active_record_1
1332
+ ModelTranslation Exists (0.1ms) SELECT 1 AS one FROM "model_translations" WHERE ("model_translations"."model_id" = 1 AND "model_translations"."id" != 1 AND "model_translations"."locale" = 'en') LIMIT 1
1333
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1335
+  (0.1ms) rollback transaction
@@ -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 exists" do
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 @record.name, 'name'
6
+ assert_equal 'name', record.name
11
7
  end
12
8
 
13
9
  test "should edit associated translation" do
14
- @record.update_attributes name: 'new name'
15
- assert_equal @record.name, 'new name'
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
- @record.destroy
20
- assert_equal ModelTranslation.find_by_model_id(@record.id), nil
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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
- - Mattways
7
+ - Museways
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-19 00:00:00.000000000 Z
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
- - contact@mattways.com
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
- - lib/translatable_records.rb
56
- - MIT-LICENSE
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/mattways/translatable_records
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.0.3
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