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