Skip to content
Permalink
Browse files
Deprecate unused symbolized_base_class and symbolized_sti_name.
These methods were only used for the `IdentityMap` which was removed.
They are no longer used internally and should be removed without replacement.

As they were not `:nodoc:`'ed it's better to deprecate them before removal.
  • Loading branch information
senny committed Jan 3, 2014
1 parent 5aa8698 commit 97e7ca48c139ea5cce2fa9b4be631946252a1ebd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
@@ -1,3 +1,8 @@
* Deprecate unused `ActiveRecord::Base.symbolized_base_class`
and `ActiveRecord::Base.symbolized_sti_name` without replacement.

*Yves Senn*

* Since the `test_help.rb` in Railties now automatically maintains
your test schema, the `rake db:test:*` tasks are deprecated. This
doesn't stop you manually running other tasks on your test database
@@ -45,10 +45,12 @@ def finder_needs_type_condition? #:nodoc:
end

def symbolized_base_class
ActiveSupport::Deprecation.warn("ActiveRecord::Base.symbolized_base_class is deprecated and will be removed without replacement.")
@symbolized_base_class ||= base_class.to_s.to_sym
end

def symbolized_sti_name
ActiveSupport::Deprecation.warn("ActiveRecord::Base.symbolized_sti_name is deprecated and will be removed without replacement.")
@symbolized_sti_name ||= sti_name.present? ? sti_name.to_sym : symbolized_base_class
end

@@ -432,6 +432,9 @@ for detailed changes.
automatically maintained. See railties release notes. ([Pull
Request](https://github.com/rails/rails/pull/13528))

* Deprecate unused `ActiveRecord::Base.symbolized_base_class`
and `ActiveRecord::Base.symbolized_sti_name` without replacement.

### Notable changes

* Added `ActiveRecord::Base.to_param` for convenient "pretty" URLs derived from

0 comments on commit 97e7ca4

Please sign in to comment.