Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

type_name is never a blank string, so use faster .nil? call

  • Loading branch information...
commit 7e73344f7ae2f227c6961abe78a40fa6f991c25c 1 parent ea63054
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/base.rb
View
2  activerecord/lib/active_record/base.rb
@@ -911,7 +911,7 @@ def instantiate(record)
end
def find_sti_class(type_name)
- if type_name.blank? || !columns_hash.include?(inheritance_column)
+ if type_name.nil? || !columns_hash.include?(inheritance_column)
self
else
begin
Please sign in to comment.
Something went wrong with that request. Please try again.