Browse files

Merge pull request #11264 from vipulnsward/deprecate_find_table_name

Remove deprecated `ActiveRecord::Fixtures.find_table_name`
  • Loading branch information...
2 parents 33c61e3 + 28d1d3f commit b70dd49060ec675f0e97efaeaa7d5c0878897ea3 @senny senny committed Jul 3, 2013
Showing with 5 additions and 6 deletions.
  1. +5 −0 activerecord/CHANGELOG.md
  2. +0 −6 activerecord/lib/active_record/fixtures.rb
View
5 activerecord/CHANGELOG.md
@@ -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*
View
6 activerecord/lib/active_record/fixtures.rb
@@ -379,12 +379,6 @@ class FixtureSet
@@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 :

0 comments on commit b70dd49

Please sign in to comment.