diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 12:28:04 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 20:13:36 +0000 |
commit | 0b72a04d0c93b666c23500aefbe4a6a76593cd36 (patch) | |
tree | ade686831d089326d5a45a1cefe084950ed9bd8d /activerecord/test/cases/adapters/mysql2 | |
parent | f73f53455a01a93bd90cb8c0cee1a7c54afdb301 (diff) | |
download | rails-0b72a04d0c93b666c23500aefbe4a6a76593cd36.tar.gz rails-0b72a04d0c93b666c23500aefbe4a6a76593cd36.tar.bz2 rails-0b72a04d0c93b666c23500aefbe4a6a76593cd36.zip |
Deprecate set_table_name in favour of self.table_name= or defining your own method.
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/schema_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/schema_test.rb b/activerecord/test/cases/adapters/mysql2/schema_test.rb index 49514e1539..d5676bc522 100644 --- a/activerecord/test/cases/adapters/mysql2/schema_test.rb +++ b/activerecord/test/cases/adapters/mysql2/schema_test.rb @@ -14,7 +14,7 @@ module ActiveRecord @db_name = db @omgpost = Class.new(ActiveRecord::Base) do - set_table_name "#{db}.#{table}" + self.table_name = "#{db}.#{table}" def self.name; 'Post'; end end end |