summaryrefslogtreecommitdiff
path: root/vendor/plugins/globalize2/test/data/post.rb
blob: fdfb7c0e0f8fce84152c4c6f111b27a3cb179104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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