Sha256: b29f01cb588b6fb9241a86860418702e6bbcf27685ea5a31aa6982c0fc989e7e
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 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 class Tag < ActiveRecord::Base translates :name end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_model_translations-0.1.3 | spec/data/models.rb |
simple_model_translations-0.1.2 | spec/data/models.rb |