Project

General

Profile

Defect #8824 ยป patch.txt

Tim marston, 2011-07-15 13:10

 
1
diff --git a/vendor/plugins/awesome_nested_set/test/awesome_nested_set_test.rb b/vendor/plugins/awesome_nested_set/test/awesome_nested_set_test.rb
2
index 5252d80..bcccf7c 100644
3
--- a/vendor/plugins/awesome_nested_set/test/awesome_nested_set_test.rb
4
+++ b/vendor/plugins/awesome_nested_set/test/awesome_nested_set_test.rb
5
@@ -8,11 +8,11 @@ class AwesomeNestedSetTest < Test::Unit::TestCase
6

    
7
   class Default < ActiveRecord::Base
8
     acts_as_nested_set
9
-    set_table_name 'categories'
10
+    set_table_name "#{table_name_prefix}categories#{table_name_suffix}"
11
   end
12
   class Scoped < ActiveRecord::Base
13
     acts_as_nested_set :scope => :organization
14
-    set_table_name 'categories'
15
+    set_table_name "#{table_name_prefix}categories#{table_name_suffix}"
16
   end
17

    
18
   def test_left_column_default
19
diff --git a/vendor/plugins/classic_pagination/test/fixtures/developer.rb b/vendor/plugins/classic_pagination/test/fixtures/developer.rb
20
index f5e5b90..05b745a 100644
21
--- a/vendor/plugins/classic_pagination/test/fixtures/developer.rb
22
+++ b/vendor/plugins/classic_pagination/test/fixtures/developer.rb
23
@@ -3,5 +3,5 @@ class Developer < ActiveRecord::Base
24
 end
25

    
26
 class DeVeLoPeR < ActiveRecord::Base
27
-  set_table_name "developers"
28
+  set_table_name "#{table_name_prefix}developers#{table_name_suffix}"
29
 end
30
diff --git a/vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb b/vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb
31
index 9654eae..332aef5 100644
32
--- a/vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb
33
+++ b/vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb
34
@@ -1,6 +1,6 @@
35
 module OpenIdAuthentication
36
   class Association < ActiveRecord::Base
37
-    set_table_name :open_id_authentication_associations
38
+    set_table_name "#{table_name_prefix}open_id_authentication_associations#{table_name_suffix}"
39

    
40
     def from_record
41
       OpenID::Association.new(handle, secret, issued, lifetime, assoc_type)
42
diff --git a/vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb b/vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
43
index c52f6c5..7473ef6 100644
44
--- a/vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
45
+++ b/vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
46
@@ -1,5 +1,5 @@
47
 module OpenIdAuthentication
48
   class Nonce < ActiveRecord::Base
49
-    set_table_name :open_id_authentication_nonces
50
+    set_table_name "#{table_name_prefix}open_id_authentication_nonces#{table_name_suffix}"
51
   end
52
 end
    (1-1/1)