summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-27 16:31:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-27 16:31:51 +0000
commitf2ec23d80cf40157644938b438aec1aa4e119043 (patch)
treefe81ccde2fdf364d39ddf2b3a85c3d1e07d99cc8 /lib/plugins
parentd940797aa79f9c12df154422768096f77285e378 (diff)
downloadredmine-f2ec23d80cf40157644938b438aec1aa4e119043.tar.gz
redmine-f2ec23d80cf40157644938b438aec1aa4e119043.zip
set_table_name deprecated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9550 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/awesome_nested_set/spec/awesome_nested_set_spec.rb2
-rw-r--r--lib/plugins/awesome_nested_set/spec/support/models.rb6
-rw-r--r--lib/plugins/awesome_nested_set/test/awesome_nested_set_test.rb4
-rw-r--r--lib/plugins/classic_pagination/test/fixtures/developer.rb2
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/plugins/awesome_nested_set/spec/awesome_nested_set_spec.rb b/lib/plugins/awesome_nested_set/spec/awesome_nested_set_spec.rb
index 1060bba4a..c1c0f7401 100644
--- a/lib/plugins/awesome_nested_set/spec/awesome_nested_set_spec.rb
+++ b/lib/plugins/awesome_nested_set/spec/awesome_nested_set_spec.rb
@@ -763,7 +763,7 @@ describe "AwesomeNestedSet" do
it "should not error on a model with attr_accessible" do
model = Class.new(ActiveRecord::Base)
- model.set_table_name 'categories'
+ model.table_name = 'categories'
model.attr_accessible :name
lambda {
model.acts_as_nested_set
diff --git a/lib/plugins/awesome_nested_set/spec/support/models.rb b/lib/plugins/awesome_nested_set/spec/support/models.rb
index 816b682c1..bb8776132 100644
--- a/lib/plugins/awesome_nested_set/spec/support/models.rb
+++ b/lib/plugins/awesome_nested_set/spec/support/models.rb
@@ -3,12 +3,12 @@ class Note < ActiveRecord::Base
end
class Default < ActiveRecord::Base
- set_table_name 'categories'
+ self.table_name = 'categories'
acts_as_nested_set
end
class ScopedCategory < ActiveRecord::Base
- set_table_name 'categories'
+ self.table_name = 'categories'
acts_as_nested_set :scope => :organization
end
@@ -48,7 +48,7 @@ end
class DefaultWithCallbacks < ActiveRecord::Base
- set_table_name 'categories'
+ self.table_name = 'categories'
attr_accessor :before_add, :after_add, :before_remove, :after_remove
diff --git a/lib/plugins/awesome_nested_set/test/awesome_nested_set_test.rb b/lib/plugins/awesome_nested_set/test/awesome_nested_set_test.rb
index 5252d804e..9f94b43d8 100644
--- a/lib/plugins/awesome_nested_set/test/awesome_nested_set_test.rb
+++ b/lib/plugins/awesome_nested_set/test/awesome_nested_set_test.rb
@@ -8,11 +8,11 @@ class AwesomeNestedSetTest < Test::Unit::TestCase
class Default < ActiveRecord::Base
acts_as_nested_set
- set_table_name 'categories'
+ self.table_name = 'categories'
end
class Scoped < ActiveRecord::Base
acts_as_nested_set :scope => :organization
- set_table_name 'categories'
+ self.table_name = 'categories'
end
def test_left_column_default
diff --git a/lib/plugins/classic_pagination/test/fixtures/developer.rb b/lib/plugins/classic_pagination/test/fixtures/developer.rb
index f5e5b901f..08cae72ff 100644
--- a/lib/plugins/classic_pagination/test/fixtures/developer.rb
+++ b/lib/plugins/classic_pagination/test/fixtures/developer.rb
@@ -3,5 +3,5 @@ class Developer < ActiveRecord::Base
end
class DeVeLoPeR < ActiveRecord::Base
- set_table_name "developers"
+ self.table_name = "developers"
end