From 36a2f1f3c085dd81171cf7d8220770d4ff921ab3 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 7 Feb 2009 15:50:40 +0100 Subject: added globalize2 plugin as well as some modifications which use the new translation facilities. backend mostly. --- vendor/plugins/globalize2/test/data/post.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 vendor/plugins/globalize2/test/data/post.rb (limited to 'vendor/plugins/globalize2/test/data/post.rb') diff --git a/vendor/plugins/globalize2/test/data/post.rb b/vendor/plugins/globalize2/test/data/post.rb new file mode 100644 index 00000000..20a2495d --- /dev/null +++ b/vendor/plugins/globalize2/test/data/post.rb @@ -0,0 +1,8 @@ +class Post < ActiveRecord::Base + translates :subject, :content + validates_presence_of :subject +end + +class Blog < ActiveRecord::Base + has_many :posts, :order => 'id ASC' +end -- cgit v1.3