mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
set_table_name deprecated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9550 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user