summaryrefslogtreecommitdiff
path: root/vendor/plugins/globalize2/test/data/post.rb
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-07 15:50:40 +0100
committerhukl <hukl@eight.local>2009-02-07 15:50:40 +0100
commit36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (patch)
tree5ded15331b192bf428af4c94d46d1abb28ef0690 /vendor/plugins/globalize2/test/data/post.rb
parentce9645d0092d42c7bf8781378181ffbd4ff3d088 (diff)
added globalize2 plugin as well as some modifications
which use the new translation facilities. backend mostly.
Diffstat (limited to 'vendor/plugins/globalize2/test/data/post.rb')
-rw-r--r--vendor/plugins/globalize2/test/data/post.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/plugins/globalize2/test/data/post.rb b/vendor/plugins/globalize2/test/data/post.rb
new file mode 100644
index 0000000..20a2495
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/post.rb
@@ -0,0 +1,8 @@
1class Post < ActiveRecord::Base
2 translates :subject, :content
3 validates_presence_of :subject
4end
5
6class Blog < ActiveRecord::Base
7 has_many :posts, :order => 'id ASC'
8end