diff options
Diffstat (limited to 'vendor/plugins/globalize2/test/data/models.rb')
| -rw-r--r-- | vendor/plugins/globalize2/test/data/models.rb | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/vendor/plugins/globalize2/test/data/models.rb b/vendor/plugins/globalize2/test/data/models.rb deleted file mode 100644 index 553fca3..0000000 --- a/vendor/plugins/globalize2/test/data/models.rb +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | #require 'ruby2ruby' | ||
| 2 | #require 'parse_tree' | ||
| 3 | #require 'parse_tree_extensions' | ||
| 4 | #require 'pp' | ||
| 5 | |||
| 6 | class PostTranslation < ActiveRecord::Base | ||
| 7 | def existing_method ; end | ||
| 8 | end | ||
| 9 | |||
| 10 | class Post < ActiveRecord::Base | ||
| 11 | translates :subject, :content | ||
| 12 | validates_presence_of :subject | ||
| 13 | named_scope :foobar, :conditions => { :title => "foobar" } | ||
| 14 | end | ||
| 15 | |||
| 16 | class Blog < ActiveRecord::Base | ||
| 17 | has_many :posts, :order => 'id ASC' | ||
| 18 | end | ||
| 19 | |||
| 20 | class Parent < ActiveRecord::Base | ||
| 21 | translates :content | ||
| 22 | end | ||
| 23 | |||
| 24 | class Child < Parent | ||
| 25 | end | ||
| 26 | |||
| 27 | class Comment < ActiveRecord::Base | ||
| 28 | validates_presence_of :content | ||
| 29 | belongs_to :post | ||
| 30 | end | ||
| 31 | |||
| 32 | class TranslatedComment < Comment | ||
| 33 | translates :content | ||
| 34 | end | ||
| 35 | |||
| 36 | class UltraLongModelNameWithoutProper < ActiveRecord::Base | ||
| 37 | translates :subject, :content | ||
| 38 | validates_presence_of :subject | ||
| 39 | end | ||
| 40 | |||
| 41 | class Reloader < Parent | ||
| 42 | after_create :do_reload | ||
| 43 | |||
| 44 | def do_reload | ||
| 45 | reload | ||
| 46 | end | ||
| 47 | end | ||
| 48 | |||
| 49 | class Validatee < ActiveRecord::Base | ||
| 50 | translates :string | ||
| 51 | end | ||
