diff options
Diffstat (limited to 'vendor/plugins/globalize2/test/data')
| -rw-r--r-- | vendor/plugins/globalize2/test/data/post.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/plugins/globalize2/test/data/post.rb b/vendor/plugins/globalize2/test/data/post.rb index fdfb7c0..6673dc4 100644 --- a/vendor/plugins/globalize2/test/data/post.rb +++ b/vendor/plugins/globalize2/test/data/post.rb | |||
| @@ -12,4 +12,13 @@ class Parent < ActiveRecord::Base | |||
| 12 | end | 12 | end |
| 13 | 13 | ||
| 14 | class Child < Parent | 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 | ||
| 15 | end \ No newline at end of file | 24 | end \ No newline at end of file |
