Skip to content

Commit

Permalink
Remove deprecated symbolized_base_class and symbolized_sti_name
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 4, 2015
1 parent c8e6a76 commit 9013e28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
* Remove deprecated `symbolized_base_class` and `symbolized_sti_name`.

*Rafael Mendonça França*

* Remove deprecated `ActiveRecord::Base.disable_implicit_join_references=`.

*Rafael Mendonça França*
Expand Down
10 changes: 0 additions & 10 deletions activerecord/lib/active_record/inheritance.rb
Expand Up @@ -79,16 +79,6 @@ def finder_needs_type_condition? #:nodoc:
:true == (@finder_needs_type_condition ||= descends_from_active_record? ? :false : :true)
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

# Returns the class descending directly from ActiveRecord::Base, or
# an abstract class, if any, in the inheritance hierarchy.
#
Expand Down

0 comments on commit 9013e28

Please sign in to comment.