summaryrefslogtreecommitdiff
path: root/vendor/plugins/globalize2/test/data
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/globalize2/test/data')
-rw-r--r--vendor/plugins/globalize2/test/data/models.rb51
-rw-r--r--vendor/plugins/globalize2/test/data/no_globalize_schema.rb11
2 files changed, 0 insertions, 62 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
6class PostTranslation < ActiveRecord::Base
7 def existing_method ; end
8end
9
10class Post < ActiveRecord::Base
11 translates :subject, :content
12 validates_presence_of :subject
13 named_scope :foobar, :conditions => { :title => "foobar" }
14end
15
16class Blog < ActiveRecord::Base
17 has_many :posts, :order => 'id ASC'
18end
19
20class Parent < ActiveRecord::Base
21 translates :content
22end
23
24class Child < Parent
25end
26
27class Comment < ActiveRecord::Base
28 validates_presence_of :content
29 belongs_to :post
30end
31
32class TranslatedComment < Comment
33 translates :content
34end
35
36class UltraLongModelNameWithoutProper < ActiveRecord::Base
37 translates :subject, :content
38 validates_presence_of :subject
39end
40
41class Reloader < Parent
42 after_create :do_reload
43
44 def do_reload
45 reload
46 end
47end
48
49class Validatee < ActiveRecord::Base
50 translates :string
51end
diff --git a/vendor/plugins/globalize2/test/data/no_globalize_schema.rb b/vendor/plugins/globalize2/test/data/no_globalize_schema.rb
deleted file mode 100644
index 379455d..0000000
--- a/vendor/plugins/globalize2/test/data/no_globalize_schema.rb
+++ /dev/null
@@ -1,11 +0,0 @@
1# This schema creates tables without columns for the translated fields
2ActiveRecord::Schema.define do
3 create_table :blogs, :force => true do |t|
4 t.string :name
5 end
6
7 create_table :posts, :force => true do |t|
8 t.references :blog
9 end
10end
11