Change ancestors.include?() to is_a?()