spec/data/models.rb in simple_model_translations-0.1.3 vs spec/data/models.rb in simple_model_translations-0.1.4
- old
+ new
@@ -1,19 +1,19 @@
+class ArticleTranslation < ActiveRecord::Base
+ translation_for :article
+end
+
class Article < ActiveRecord::Base
translates :name, :content, :class_name => 'ArticleTranslation'
end
-class ArticleTranslation < ActiveRecord::Base
- translation_for :article
+class PostTranslation < ActiveRecord::Base
+ translation_for :post
end
class Post < ActiveRecord::Base
translates :name, :content
validate_translations :en, :ru
-end
-
-class PostTranslation < ActiveRecord::Base
- translation_for :post
end
class Tag < ActiveRecord::Base
translates :name
end
\ No newline at end of file