]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/globalize2/test/data/post.rb
Allow the "remember me" label to wrap when showing OpenID URL field
[rails.git] / vendor / plugins / globalize2 / test / data / post.rb
1 class Post < ActiveRecord::Base
2   translates :subject, :content
3   validates_presence_of :subject
4 end
5
6 class Blog < ActiveRecord::Base
7   has_many :posts, :order => 'id ASC'
8 end
9
10 class Parent < ActiveRecord::Base
11   translates :content
12 end
13
14 class Child < Parent
15 end
16
17 class Comment < ActiveRecord::Base
18   validates_presence_of :content
19   belongs_to :post
20 end
21  
22 class TranslatedComment < Comment
23   translates :content
24 end