Sha256: fa9211cc4cc3a4d7ede91a18286e0dd583affcecdfca2ab3c3a48803823a67ee

Contents?: true

Size: 416 Bytes

Versions: 10

Compression:

Stored size: 416 Bytes

Contents

class Post < ActiveRecord::Base
  translates :subject, :content
  validates_presence_of :subject
end

class Blog < ActiveRecord::Base
  has_many :posts, :order => 'id ASC'
end

class Parent < ActiveRecord::Base
  translates :content
end

class Child < Parent
end

class Comment < ActiveRecord::Base
  validates_presence_of :content
  belongs_to :post
end
 
class TranslatedComment < Comment
  translates :content
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
kriss-gettext_i18n-0.2.0 vendor/globalize2/test/data/post.rb
kriss-gettext_i18n-0.2.1 vendor/globalize2/test/data/post.rb
kriss-gettext_i18n-0.2.2 vendor/globalize2/test/data/post.rb
kriss-gettext_i18n-0.2.3 vendor/globalize2/test/data/post.rb
simonmenke-globalize2-0.0.1 test/data/post.rb
simonmenke-globalize2-0.0.4 test/data/post.rb
simonmenke-globalize2-0.0.5 test/data/post.rb
simonmenke-globalize2-0.0.6 test/data/post.rb
simonmenke-simonmenke-globalize2-0.0.2 test/data/post.rb
simonmenke-globalize2-0.0.7 test/data/post.rb