diff options
| author | hukl <contact@smyck.org> | 2009-10-06 20:54:47 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-06 20:54:47 +0200 |
| commit | 2c59d78cde32cfd6f6fcda1f9aa78f94b38e5930 (patch) | |
| tree | 23935202a8c45ae1997739d4173a3d9559e080e5 /vendor/plugins/globalize2/test/data | |
| parent | cd6ebe068cf42badc07ea0d803476ef4b1be3177 (diff) | |
updated globalize2
Diffstat (limited to 'vendor/plugins/globalize2/test/data')
| -rw-r--r-- | vendor/plugins/globalize2/test/data/models.rb (renamed from vendor/plugins/globalize2/test/data/post.rb) | 5 | ||||
| -rw-r--r-- | vendor/plugins/globalize2/test/data/no_globalize_schema.rb | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/vendor/plugins/globalize2/test/data/post.rb b/vendor/plugins/globalize2/test/data/models.rb index 6673dc4..f6dab90 100644 --- a/vendor/plugins/globalize2/test/data/post.rb +++ b/vendor/plugins/globalize2/test/data/models.rb | |||
| @@ -21,4 +21,9 @@ end | |||
| 21 | 21 | ||
| 22 | class TranslatedComment < Comment | 22 | class TranslatedComment < Comment |
| 23 | translates :content | 23 | translates :content |
| 24 | end | ||
| 25 | |||
| 26 | class UltraLongModelNameWithoutProper < ActiveRecord::Base | ||
| 27 | translates :subject, :content | ||
| 28 | validates_presence_of :subject | ||
| 24 | end \ No newline at end of file | 29 | end \ No newline at end of file |
diff --git a/vendor/plugins/globalize2/test/data/no_globalize_schema.rb b/vendor/plugins/globalize2/test/data/no_globalize_schema.rb index 7cfaf69..379455d 100644 --- a/vendor/plugins/globalize2/test/data/no_globalize_schema.rb +++ b/vendor/plugins/globalize2/test/data/no_globalize_schema.rb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # This schema creates tables without columns for the translated fields | 1 | # This schema creates tables without columns for the translated fields |
| 2 | ActiveRecord::Schema.define do | 2 | ActiveRecord::Schema.define do |
| 3 | create_table :blogs, :force => true do |t| | 3 | create_table :blogs, :force => true do |t| |
| 4 | t.string :name | 4 | t.string :name |
| 5 | end | 5 | end |
| @@ -8,4 +8,4 @@ ActiveRecord::Schema.define do | |||
| 8 | t.references :blog | 8 | t.references :blog |
| 9 | end | 9 | end |
| 10 | end | 10 | end |
| 11 | 11 | ||
