mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated ActiveRecord::Fixtures.find_table_name
in favour of ActiveRecord::Fixtures.default_fixture_model_name
.
This commit is contained in:
parent
f775a8456a
commit
28d1d3f0fb
2 changed files with 5 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
* Remove deprecated `ActiveRecord::Fixtures.find_table_name` in favor of
|
||||
`ActiveRecord::Fixtures.default_fixture_model_name`.
|
||||
|
||||
*Vipul A M*
|
||||
|
||||
* Removed deprecated `columns_for_remove` from `SchemaStatements`.
|
||||
|
||||
*Neeraj Singh*
|
||||
|
|
|
@ -379,12 +379,6 @@ module ActiveRecord
|
|||
|
||||
@@all_cached_fixtures = Hash.new { |h,k| h[k] = {} }
|
||||
|
||||
def self.find_table_name(fixture_set_name) # :nodoc:
|
||||
ActiveSupport::Deprecation.warn(
|
||||
"ActiveRecord::Fixtures.find_table_name is deprecated and shall be removed from future releases. Use ActiveRecord::Fixtures.default_fixture_model_name instead.")
|
||||
default_fixture_model_name(fixture_set_name)
|
||||
end
|
||||
|
||||
def self.default_fixture_model_name(fixture_set_name) # :nodoc:
|
||||
ActiveRecord::Base.pluralize_table_names ?
|
||||
fixture_set_name.singularize.camelize :
|
||||
|
|
Loading…
Reference in a new issue