activerecord/lib/active_record/translation.rb
# Set the lookup ancestors for ActiveModel.
Set the lookup ancestors for ActiveModel.
Set the lookup ancestors for ActiveModel .
def lookup_ancestors 
      klass = self
      classes = [klass]
      return classes if klass == ActiveRecord::Base
      while klass != klass.base_class
        classes << klass = klass.superclass
      end
      classes
    end
def lookup_ancestors klass = self classes = [ klass ] return classes if klass == ActiveRecord :: Base while klass != klass . base_class classes << klass = klass . superclass end classes end
Set the lookup ancestors for ActiveModel.
Set the lookup ancestors for ActiveModel .
#:nodoc: