Skip to content

Commit

Permalink
Class.new.name returns an empty string on 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 7, 2011
1 parent 5d6c8d5 commit ba23bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -831,7 +831,7 @@ def symbolized_base_class
end end


def symbolized_sti_name def symbolized_sti_name
@symbolized_sti_name ||= sti_name ? sti_name.to_sym : symbolized_base_class @symbolized_sti_name ||= sti_name.present? ? sti_name.to_sym : symbolized_base_class
end end


# Returns the base AR subclass that this class descends from. If A # Returns the base AR subclass that this class descends from. If A
Expand Down

0 comments on commit ba23bf4

Please sign in to comment.