class AASM::Localizer
def ancestors_list(klass)
def ancestors_list(klass) has_active_record_base = defined?(::ActiveRecord::Base) klass.ancestors.select do |ancestor| not_active_record_base = has_active_record_base ? (ancestor != ::ActiveRecord::Base) : true ancestor.respond_to?(:model_name) && not_active_record_base end end