Sha256: 97cca8b5694c6ce1285a9249de304048174e58b7aca7dc4de3370628a01b0c7f
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
class Article < ActiveRecord::Base translates :name, :content, :class_name => 'ArticleTranslation' end class ArticleTranslation < ActiveRecord::Base translation_for :article end class Post < ActiveRecord::Base translates :name, :content validate_translations :en, :ru end class PostTranslation < ActiveRecord::Base translation_for :post end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_model_translations-0.1.1 | spec/data/models.rb |
simple_model_translations-0.1.0 | spec/data/models.rb |